Click here to Skip to main content
15,897,273 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 324.5K   48.8K   279  
An alpha channel composited form for image based Window frames
namespace TestForm
	{
	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.surfButton = new System.Windows.Forms.Button();
        this.panel1 = new System.Windows.Forms.Panel();
        this.infoLabel = new System.Windows.Forms.Label();
        this.alphaFormMarker7 = new AlphaForm.AlphaFormMarker();
        this.gbLink = new System.Windows.Forms.LinkLabel();
        this.rdLink = new System.Windows.Forms.LinkLabel();
        this.blogLink = new System.Windows.Forms.LinkLabel();
        this.label1 = new System.Windows.Forms.Label();
        this.label2 = new System.Windows.Forms.Label();
        this.offButton = new System.Windows.Forms.Button();
        this.alphaFormMarker2 = new AlphaForm.AlphaFormMarker();
        this.webBrowser = new System.Windows.Forms.WebBrowser();
        this.surfURL = new System.Windows.Forms.TextBox();
        this.alphaFormMarker1 = new AlphaForm.AlphaFormMarker();
        this.alphaFormMarker5 = new AlphaForm.AlphaFormMarker();
        this.alphaFormMarker6 = new AlphaForm.AlphaFormMarker();
        this.alphaFormMarker4 = new AlphaForm.AlphaFormMarker();
        this.alphaFormMarker3 = new AlphaForm.AlphaFormMarker();
        this.alphaFormTransformer1.SuspendLayout();
        this.panel1.SuspendLayout();
        this.SuspendLayout();
        // 
        // alphaFormTransformer1
        // 
        this.alphaFormTransformer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
        this.alphaFormTransformer1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("alphaFormTransformer1.BackgroundImage")));
        this.alphaFormTransformer1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
        this.alphaFormTransformer1.Controls.Add(this.surfButton);
        this.alphaFormTransformer1.Controls.Add(this.panel1);
        this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker7);
        this.alphaFormTransformer1.Controls.Add(this.gbLink);
        this.alphaFormTransformer1.Controls.Add(this.rdLink);
        this.alphaFormTransformer1.Controls.Add(this.blogLink);
        this.alphaFormTransformer1.Controls.Add(this.label1);
        this.alphaFormTransformer1.Controls.Add(this.label2);
        this.alphaFormTransformer1.Controls.Add(this.offButton);
        this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker2);
        this.alphaFormTransformer1.Controls.Add(this.webBrowser);
        this.alphaFormTransformer1.Controls.Add(this.surfURL);
        this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker1);
        this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker5);
        this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker6);
        this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker4);
        this.alphaFormTransformer1.Controls.Add(this.alphaFormMarker3);
        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(950, 671);
        this.alphaFormTransformer1.TabIndex = 0;
        // 
        // surfButton
        // 
        this.surfButton.Location = new System.Drawing.Point(61, 408);
        this.surfButton.Name = "surfButton";
        this.surfButton.Size = new System.Drawing.Size(75, 23);
        this.surfButton.TabIndex = 8;
        this.surfButton.Text = "Surf";
        this.surfButton.UseVisualStyleBackColor = true;
        this.surfButton.Click += new System.EventHandler(this.surfButton_Click);
        // 
        // panel1
        // 
        this.panel1.BackColor = System.Drawing.Color.DarkSlateBlue;
        this.panel1.Controls.Add(this.infoLabel);
        this.panel1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
        this.panel1.Location = new System.Drawing.Point(307, 557);
        this.panel1.Name = "panel1";
        this.panel1.Size = new System.Drawing.Size(543, 25);
        this.panel1.TabIndex = 19;
        // 
        // infoLabel
        // 
        this.infoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                    | System.Windows.Forms.AnchorStyles.Right)));
        this.infoLabel.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.infoLabel.ForeColor = System.Drawing.Color.WhiteSmoke;
        this.infoLabel.Location = new System.Drawing.Point(3, 4);
        this.infoLabel.Name = "infoLabel";
        this.infoLabel.Size = new System.Drawing.Size(537, 18);
        this.infoLabel.TabIndex = 0;
        this.infoLabel.Text = "Our Most Extraordinary 3D Software";
        this.infoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
        // 
        // alphaFormMarker7
        // 
        this.alphaFormMarker7.FillBorder = ((uint)(4u));
        this.alphaFormMarker7.Location = new System.Drawing.Point(579, 563);
        this.alphaFormMarker7.Name = "alphaFormMarker7";
        this.alphaFormMarker7.Size = new System.Drawing.Size(17, 17);
        this.alphaFormMarker7.TabIndex = 20;
        // 
        // gbLink
        // 
        this.gbLink.BackColor = System.Drawing.Color.Transparent;
        this.gbLink.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.gbLink.LinkColor = System.Drawing.Color.Lavender;
        this.gbLink.Location = new System.Drawing.Point(869, 267);
        this.gbLink.Name = "gbLink";
        this.gbLink.Size = new System.Drawing.Size(68, 50);
        this.gbLink.TabIndex = 15;
        this.gbLink.TabStop = true;
        this.gbLink.Text = "GroBoto";
        this.gbLink.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
        this.gbLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.gbLink_LinkClicked);
        // 
        // rdLink
        // 
        this.rdLink.BackColor = System.Drawing.Color.Transparent;
        this.rdLink.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.rdLink.LinkColor = System.Drawing.Color.Lavender;
        this.rdLink.Location = new System.Drawing.Point(875, 421);
        this.rdLink.Name = "rdLink";
        this.rdLink.Size = new System.Drawing.Size(57, 58);
        this.rdLink.TabIndex = 14;
        this.rdLink.TabStop = true;
        this.rdLink.Text = "R&&D";
        this.rdLink.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
        this.rdLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.rdLink_LinkClicked);
        // 
        // blogLink
        // 
        this.blogLink.BackColor = System.Drawing.Color.Transparent;
        this.blogLink.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.blogLink.LinkColor = System.Drawing.Color.Lavender;
        this.blogLink.Location = new System.Drawing.Point(872, 481);
        this.blogLink.Name = "blogLink";
        this.blogLink.Size = new System.Drawing.Size(70, 60);
        this.blogLink.TabIndex = 13;
        this.blogLink.TabStop = true;
        this.blogLink.Text = "Blog";
        this.blogLink.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
        this.blogLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.blogLink_LinkClicked);
        // 
        // label1
        // 
        this.label1.AutoSize = true;
        this.label1.BackColor = System.Drawing.Color.Transparent;
        this.label1.Font = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
        this.label1.Location = new System.Drawing.Point(27, 325);
        this.label1.Name = "label1";
        this.label1.Size = new System.Drawing.Size(135, 29);
        this.label1.TabIndex = 5;
        this.label1.Text = "GroBoto TV";
        // 
        // label2
        // 
        this.label2.AutoSize = true;
        this.label2.BackColor = System.Drawing.Color.Transparent;
        this.label2.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
        this.label2.Location = new System.Drawing.Point(23, 356);
        this.label2.Name = "label2";
        this.label2.Size = new System.Drawing.Size(144, 16);
        this.label2.TabIndex = 6;
        this.label2.Text = "All GroBoto All the Time";
        // 
        // offButton
        // 
        this.offButton.BackColor = System.Drawing.Color.Transparent;
        this.offButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
        this.offButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
        this.offButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
        this.offButton.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.offButton.ForeColor = System.Drawing.SystemColors.ButtonFace;
        this.offButton.Location = new System.Drawing.Point(83, 124);
        this.offButton.Name = "offButton";
        this.offButton.Size = new System.Drawing.Size(93, 94);
        this.offButton.TabIndex = 4;
        this.offButton.Text = "Off";
        this.offButton.UseVisualStyleBackColor = false;
        this.offButton.Click += new System.EventHandler(this.offButton_Click);
        // 
        // alphaFormMarker2
        // 
        this.alphaFormMarker2.FillBorder = ((uint)(2u));
        this.alphaFormMarker2.Location = new System.Drawing.Point(121, 161);
        this.alphaFormMarker2.Name = "alphaFormMarker2";
        this.alphaFormMarker2.Size = new System.Drawing.Size(17, 17);
        this.alphaFormMarker2.TabIndex = 10;
        // 
        // webBrowser
        // 
        this.webBrowser.Location = new System.Drawing.Point(310, 181);
        this.webBrowser.MinimumSize = new System.Drawing.Size(20, 20);
        this.webBrowser.Name = "webBrowser";
        this.webBrowser.Size = new System.Drawing.Size(545, 372);
        this.webBrowser.TabIndex = 3;
        this.webBrowser.Url = new System.Uri("http://www.groboto.com", System.UriKind.Absolute);
        // 
        // surfURL
        // 
        this.surfURL.Location = new System.Drawing.Point(29, 382);
        this.surfURL.Name = "surfURL";
        this.surfURL.Size = new System.Drawing.Size(138, 21);
        this.surfURL.TabIndex = 7;
        this.surfURL.Text = "http://www.groboto.com";
        // 
        // alphaFormMarker1
        // 
        this.alphaFormMarker1.FillBorder = ((uint)(4u));
        this.alphaFormMarker1.Location = new System.Drawing.Point(83, 356);
        this.alphaFormMarker1.Name = "alphaFormMarker1";
        this.alphaFormMarker1.Size = new System.Drawing.Size(17, 17);
        this.alphaFormMarker1.TabIndex = 9;
        // 
        // alphaFormMarker5
        // 
        this.alphaFormMarker5.FillBorder = ((uint)(4u));
        this.alphaFormMarker5.Location = new System.Drawing.Point(896, 285);
        this.alphaFormMarker5.Name = "alphaFormMarker5";
        this.alphaFormMarker5.Size = new System.Drawing.Size(17, 17);
        this.alphaFormMarker5.TabIndex = 16;
        // 
        // alphaFormMarker6
        // 
        this.alphaFormMarker6.FillBorder = ((uint)(4u));
        this.alphaFormMarker6.Location = new System.Drawing.Point(896, 444);
        this.alphaFormMarker6.Name = "alphaFormMarker6";
        this.alphaFormMarker6.Size = new System.Drawing.Size(17, 17);
        this.alphaFormMarker6.TabIndex = 17;
        // 
        // alphaFormMarker4
        // 
        this.alphaFormMarker4.FillBorder = ((uint)(4u));
        this.alphaFormMarker4.Location = new System.Drawing.Point(900, 505);
        this.alphaFormMarker4.Name = "alphaFormMarker4";
        this.alphaFormMarker4.Size = new System.Drawing.Size(13, 13);
        this.alphaFormMarker4.TabIndex = 12;
        // 
        // alphaFormMarker3
        // 
        this.alphaFormMarker3.FillBorder = ((uint)(4u));
        this.alphaFormMarker3.Location = new System.Drawing.Point(589, 373);
        this.alphaFormMarker3.Name = "alphaFormMarker3";
        this.alphaFormMarker3.Size = new System.Drawing.Size(17, 17);
        this.alphaFormMarker3.TabIndex = 11;
        // 
        // Form1
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
        this.BackColor = System.Drawing.Color.White;
        this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
        this.ClientSize = new System.Drawing.Size(950, 671);
        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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
        this.Name = "Form1";
        this.Opacity = 0;
        this.Text = "Form1";
        this.Load += new System.EventHandler(this.Form1_Load);
        this.alphaFormTransformer1.ResumeLayout(false);
        this.alphaFormTransformer1.PerformLayout();
        this.panel1.ResumeLayout(false);
        this.ResumeLayout(false);

			}

		#endregion

		private AlphaForm.AlphaFormTransformer alphaFormTransformer1;
    private System.Windows.Forms.Button offButton;
    private System.Windows.Forms.WebBrowser webBrowser;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Button surfButton;
    private System.Windows.Forms.TextBox surfURL;
    private System.Windows.Forms.Label label2;
		private AlphaForm.AlphaFormMarker alphaFormMarker3;
		private AlphaForm.AlphaFormMarker alphaFormMarker2;
		private AlphaForm.AlphaFormMarker alphaFormMarker1;
    private AlphaForm.AlphaFormMarker alphaFormMarker4;
    private System.Windows.Forms.LinkLabel blogLink;
    private System.Windows.Forms.LinkLabel gbLink;
    private AlphaForm.AlphaFormMarker alphaFormMarker5;
    private AlphaForm.AlphaFormMarker alphaFormMarker6;
    private System.Windows.Forms.Panel panel1;
    private System.Windows.Forms.Label infoLabel;
    private System.Windows.Forms.LinkLabel rdLink;
    private AlphaForm.AlphaFormMarker alphaFormMarker7;
		}
	}

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