Click here to Skip to main content
15,887,366 members
Articles / Desktop Programming / Windows Forms

An Alpha Channel Composited Windows Form with Designer Support

Rate me:
Please Sign up or sign in to vote.
4.96/5 (124 votes)
5 Oct 2009CPOL8 min read 323.2K   48.8K   279  
An alpha channel composited form for image based Window frames
namespace SlidingPanes
{
  partial class Form1
  {
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.IContainer components = null;

    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected override void Dispose(bool disposing)
    {
    if (disposing && (components != null))
    {
    components.Dispose();
    }
    base.Dispose(disposing);
    }

    #region Windows Form Designer generated code

    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
    System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
    this.alphaFormTransformer1 = new AlphaForm.AlphaFormTransformer();
    this.button1 = new System.Windows.Forms.Button();
    this.DrawerButton = new System.Windows.Forms.Button();
    this.alphaFormMarker1 = new AlphaForm.AlphaFormMarker();
    this.alphaFormTransformer1.SuspendLayout();
    this.SuspendLayout();
    // 
    // alphaFormTransformer1
    // 
    this.alphaFormTransformer1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("alphaFormTransformer1.BackgroundImage")));
    this.alphaFormTransformer1.CanDrag = true;
    this.alphaFormTransformer1.Controls.Add(this.button1);
    this.alphaFormTransformer1.Controls.Add(this.DrawerButton);
    this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker1);
    this.alphaFormTransformer1.Dock = System.Windows.Forms.DockStyle.Fill;
    this.alphaFormTransformer1.DragSleep = ((uint)(30u));
    this.alphaFormTransformer1.Location = new System.Drawing.Point(0, 0);
    this.alphaFormTransformer1.Name = "alphaFormTransformer1";
    this.alphaFormTransformer1.Size = new System.Drawing.Size(488, 479);
    this.alphaFormTransformer1.TabIndex = 0;
    // 
    // button1
    // 
    this.button1.Location = new System.Drawing.Point(202, 394);
    this.button1.Name = "button1";
    this.button1.Size = new System.Drawing.Size(99, 23);
    this.button1.TabIndex = 2;
    this.button1.Text = "Close";
    this.button1.UseVisualStyleBackColor = true;
    this.button1.Click += new System.EventHandler(this.button1_Click);
    // 
    // DrawerButton
    // 
    this.DrawerButton.Location = new System.Drawing.Point(333, 234);
    this.DrawerButton.Name = "DrawerButton";
    this.DrawerButton.Size = new System.Drawing.Size(99, 23);
    this.DrawerButton.TabIndex = 1;
    this.DrawerButton.Text = "Open Drawer ->";
    this.DrawerButton.UseVisualStyleBackColor = true;
    this.DrawerButton.Click += new System.EventHandler(this.DrawerButton_Click);
    // 
    // alphaFormMarker1
    // 
    this.alphaFormMarker1.FillBorder = ((uint)(4u));
    this.alphaFormMarker1.Location = new System.Drawing.Point(221, 198);
    this.alphaFormMarker1.Name = "alphaFormMarker1";
    this.alphaFormMarker1.Size = new System.Drawing.Size(17, 17);
    this.alphaFormMarker1.TabIndex = 0;
    // 
    // Form1
    // 
    this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
    this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
    this.ClientSize = new System.Drawing.Size(488, 479);
    this.Controls.Add(this.alphaFormTransformer1);
    this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
    this.Name = "Form1";
    this.Text = "Form1";
    this.Load += new System.EventHandler(this.Form1_Load);
    this.alphaFormTransformer1.ResumeLayout(false);
    this.ResumeLayout(false);

    }

    #endregion

    private AlphaForm.AlphaFormTransformer alphaFormTransformer1;
    private AlphaForm.AlphaFormMarker alphaFormMarker1;
    private System.Windows.Forms.Button DrawerButton;
    private System.Windows.Forms.Button button1;
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
Jeff Anderson has been a computer graphics software developer for over twenty years.

He is a co-founder of Braid Art Labs and a developer of Braid's GroBoto 3D software. Jeff also dabbles in shareware with an expanded version of the AlphaForm control and other programs here.

Comments and Discussions