Click here to Skip to main content
15,881,588 members
Articles / Programming Languages / C# 4.0

WinFormsX Part 1 of n

Rate me:
Please Sign up or sign in to vote.
4.84/5 (42 votes)
17 Aug 2012CPOL18 min read 67.4K   1.4K   91  
A look at some of the exciting methods of the Windows Forms Extension library, like animations, graphic helpers, and a modern UI form.
namespace WFX.Showcase
{
    partial class GraphicsForm
    {
        /// <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()
        {
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.numRadius4 = new System.Windows.Forms.NumericUpDown();
            this.numRadius3 = new System.Windows.Forms.NumericUpDown();
            this.checkRadius4 = new System.Windows.Forms.CheckBox();
            this.checkRadius3 = new System.Windows.Forms.CheckBox();
            this.numRadius2 = new System.Windows.Forms.NumericUpDown();
            this.checkRadius2 = new System.Windows.Forms.CheckBox();
            this.numRadius1 = new System.Windows.Forms.NumericUpDown();
            this.checkRadius1 = new System.Windows.Forms.CheckBox();
            this.label2 = new System.Windows.Forms.Label();
            this.fillColor = new System.Windows.Forms.Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.borderColor = new System.Windows.Forms.Panel();
            this.resetRect = new System.Windows.Forms.Button();
            this.roundRect = new System.Windows.Forms.PictureBox();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.blur = new System.Windows.Forms.NumericUpDown();
            this.label6 = new System.Windows.Forms.Label();
            this.dy = new System.Windows.Forms.NumericUpDown();
            this.label5 = new System.Windows.Forms.Label();
            this.dx = new System.Windows.Forms.NumericUpDown();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.shadowColor = new System.Windows.Forms.Panel();
            this.resetShadow = new System.Windows.Forms.Button();
            this.shadow = new System.Windows.Forms.PictureBox();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.eAlpha = new System.Windows.Forms.NumericUpDown();
            this.label10 = new System.Windows.Forms.Label();
            this.sAlpha = new System.Windows.Forms.NumericUpDown();
            this.label7 = new System.Windows.Forms.Label();
            this.height = new System.Windows.Forms.NumericUpDown();
            this.label8 = new System.Windows.Forms.Label();
            this.gap = new System.Windows.Forms.NumericUpDown();
            this.label9 = new System.Windows.Forms.Label();
            this.resetReflections = new System.Windows.Forms.Button();
            this.reflections = new System.Windows.Forms.PictureBox();
            this.tabPage4 = new System.Windows.Forms.TabPage();
            this.anchors = new System.Windows.Forms.CheckedListBox();
            this.edge = new System.Windows.Forms.NumericUpDown();
            this.label12 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.resetSmoothness = new System.Windows.Forms.Button();
            this.smoothness = new System.Windows.Forms.PictureBox();
            this.colorDialog = new System.Windows.Forms.ColorDialog();
            this.label13 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.label16 = new System.Windows.Forms.Label();
            this.tabControl1.SuspendLayout();
            this.tabPage1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.roundRect)).BeginInit();
            this.tabPage2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.blur)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dy)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dx)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.shadow)).BeginInit();
            this.tabPage3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.eAlpha)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.sAlpha)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.height)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gap)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.reflections)).BeginInit();
            this.tabPage4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.edge)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.smoothness)).BeginInit();
            this.SuspendLayout();
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Controls.Add(this.tabPage3);
            this.tabControl1.Controls.Add(this.tabPage4);
            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl1.Location = new System.Drawing.Point(0, 0);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(729, 404);
            this.tabControl1.TabIndex = 0;
            // 
            // tabPage1
            // 
            this.tabPage1.Controls.Add(this.label13);
            this.tabPage1.Controls.Add(this.numRadius4);
            this.tabPage1.Controls.Add(this.numRadius3);
            this.tabPage1.Controls.Add(this.checkRadius4);
            this.tabPage1.Controls.Add(this.checkRadius3);
            this.tabPage1.Controls.Add(this.numRadius2);
            this.tabPage1.Controls.Add(this.checkRadius2);
            this.tabPage1.Controls.Add(this.numRadius1);
            this.tabPage1.Controls.Add(this.checkRadius1);
            this.tabPage1.Controls.Add(this.label2);
            this.tabPage1.Controls.Add(this.fillColor);
            this.tabPage1.Controls.Add(this.label1);
            this.tabPage1.Controls.Add(this.borderColor);
            this.tabPage1.Controls.Add(this.resetRect);
            this.tabPage1.Controls.Add(this.roundRect);
            this.tabPage1.Location = new System.Drawing.Point(4, 22);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage1.Size = new System.Drawing.Size(721, 378);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "Round Rectangles";
            this.tabPage1.UseVisualStyleBackColor = true;
            // 
            // numRadius4
            // 
            this.numRadius4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.numRadius4.DecimalPlaces = 1;
            this.numRadius4.Enabled = false;
            this.numRadius4.Location = new System.Drawing.Point(481, 349);
            this.numRadius4.Name = "numRadius4";
            this.numRadius4.Size = new System.Drawing.Size(52, 20);
            this.numRadius4.TabIndex = 12;
            // 
            // numRadius3
            // 
            this.numRadius3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.numRadius3.DecimalPlaces = 1;
            this.numRadius3.Enabled = false;
            this.numRadius3.Location = new System.Drawing.Point(334, 349);
            this.numRadius3.Name = "numRadius3";
            this.numRadius3.Size = new System.Drawing.Size(52, 20);
            this.numRadius3.TabIndex = 10;
            // 
            // checkRadius4
            // 
            this.checkRadius4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.checkRadius4.AutoSize = true;
            this.checkRadius4.Location = new System.Drawing.Point(404, 350);
            this.checkRadius4.Name = "checkRadius4";
            this.checkRadius4.Size = new System.Drawing.Size(71, 17);
            this.checkRadius4.TabIndex = 11;
            this.checkRadius4.Text = "Radius 4:";
            this.checkRadius4.UseVisualStyleBackColor = true;
            this.checkRadius4.CheckedChanged += new System.EventHandler(this.radiusCheckedChanged);
            // 
            // checkRadius3
            // 
            this.checkRadius3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.checkRadius3.AutoSize = true;
            this.checkRadius3.Location = new System.Drawing.Point(257, 350);
            this.checkRadius3.Name = "checkRadius3";
            this.checkRadius3.Size = new System.Drawing.Size(71, 17);
            this.checkRadius3.TabIndex = 9;
            this.checkRadius3.Text = "Radius 3:";
            this.checkRadius3.UseVisualStyleBackColor = true;
            this.checkRadius3.CheckedChanged += new System.EventHandler(this.radiusCheckedChanged);
            // 
            // numRadius2
            // 
            this.numRadius2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.numRadius2.DecimalPlaces = 1;
            this.numRadius2.Enabled = false;
            this.numRadius2.Location = new System.Drawing.Point(481, 320);
            this.numRadius2.Name = "numRadius2";
            this.numRadius2.Size = new System.Drawing.Size(52, 20);
            this.numRadius2.TabIndex = 8;
            // 
            // checkRadius2
            // 
            this.checkRadius2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.checkRadius2.AutoSize = true;
            this.checkRadius2.Location = new System.Drawing.Point(404, 321);
            this.checkRadius2.Name = "checkRadius2";
            this.checkRadius2.Size = new System.Drawing.Size(71, 17);
            this.checkRadius2.TabIndex = 7;
            this.checkRadius2.Text = "Radius 2:";
            this.checkRadius2.UseVisualStyleBackColor = true;
            this.checkRadius2.CheckedChanged += new System.EventHandler(this.radiusCheckedChanged);
            // 
            // numRadius1
            // 
            this.numRadius1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.numRadius1.DecimalPlaces = 1;
            this.numRadius1.Location = new System.Drawing.Point(334, 320);
            this.numRadius1.Name = "numRadius1";
            this.numRadius1.Size = new System.Drawing.Size(52, 20);
            this.numRadius1.TabIndex = 6;
            this.numRadius1.Value = new decimal(new int[] {
            15,
            0,
            0,
            0});
            // 
            // checkRadius1
            // 
            this.checkRadius1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.checkRadius1.AutoSize = true;
            this.checkRadius1.Checked = true;
            this.checkRadius1.CheckState = System.Windows.Forms.CheckState.Checked;
            this.checkRadius1.Location = new System.Drawing.Point(257, 321);
            this.checkRadius1.Name = "checkRadius1";
            this.checkRadius1.Size = new System.Drawing.Size(71, 17);
            this.checkRadius1.TabIndex = 5;
            this.checkRadius1.Text = "Radius 1:";
            this.checkRadius1.UseVisualStyleBackColor = true;
            this.checkRadius1.CheckedChanged += new System.EventHandler(this.radiusCheckedChanged);
            // 
            // label2
            // 
            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(127, 351);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(45, 13);
            this.label2.TabIndex = 4;
            this.label2.Text = "Fill color";
            // 
            // fillColor
            // 
            this.fillColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.fillColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
            this.fillColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.fillColor.Cursor = System.Windows.Forms.Cursors.Hand;
            this.fillColor.Location = new System.Drawing.Point(98, 346);
            this.fillColor.Name = "fillColor";
            this.fillColor.Size = new System.Drawing.Size(23, 23);
            this.fillColor.TabIndex = 3;
            this.fillColor.Click += new System.EventHandler(this.colorClick);
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(127, 322);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(64, 13);
            this.label1.TabIndex = 2;
            this.label1.Text = "Border color";
            // 
            // borderColor
            // 
            this.borderColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.borderColor.BackColor = System.Drawing.Color.DarkGray;
            this.borderColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.borderColor.Cursor = System.Windows.Forms.Cursors.Hand;
            this.borderColor.Location = new System.Drawing.Point(98, 317);
            this.borderColor.Name = "borderColor";
            this.borderColor.Size = new System.Drawing.Size(23, 23);
            this.borderColor.TabIndex = 1;
            this.borderColor.Click += new System.EventHandler(this.colorClick);
            // 
            // resetRect
            // 
            this.resetRect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.resetRect.Location = new System.Drawing.Point(8, 315);
            this.resetRect.Name = "resetRect";
            this.resetRect.Size = new System.Drawing.Size(75, 57);
            this.resetRect.TabIndex = 0;
            this.resetRect.Text = "Reset";
            this.resetRect.UseVisualStyleBackColor = true;
            this.resetRect.Click += new System.EventHandler(this.resetRect_Click);
            // 
            // roundRect
            // 
            this.roundRect.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.roundRect.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.roundRect.Location = new System.Drawing.Point(8, 52);
            this.roundRect.Name = "roundRect";
            this.roundRect.Size = new System.Drawing.Size(705, 257);
            this.roundRect.TabIndex = 0;
            this.roundRect.TabStop = false;
            // 
            // tabPage2
            // 
            this.tabPage2.Controls.Add(this.label14);
            this.tabPage2.Controls.Add(this.blur);
            this.tabPage2.Controls.Add(this.label6);
            this.tabPage2.Controls.Add(this.dy);
            this.tabPage2.Controls.Add(this.label5);
            this.tabPage2.Controls.Add(this.dx);
            this.tabPage2.Controls.Add(this.label3);
            this.tabPage2.Controls.Add(this.label4);
            this.tabPage2.Controls.Add(this.shadowColor);
            this.tabPage2.Controls.Add(this.resetShadow);
            this.tabPage2.Controls.Add(this.shadow);
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(721, 378);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "Shadows";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // blur
            // 
            this.blur.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.blur.DecimalPlaces = 1;
            this.blur.Location = new System.Drawing.Point(448, 335);
            this.blur.Name = "blur";
            this.blur.Size = new System.Drawing.Size(69, 20);
            this.blur.TabIndex = 8;
            this.blur.Value = new decimal(new int[] {
            10,
            0,
            0,
            0});
            // 
            // label6
            // 
            this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(415, 338);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(27, 13);
            this.label6.TabIndex = 7;
            this.label6.Text = "blur:";
            // 
            // dy
            // 
            this.dy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.dy.DecimalPlaces = 1;
            this.dy.Location = new System.Drawing.Point(329, 335);
            this.dy.Minimum = new decimal(new int[] {
            100,
            0,
            0,
            -2147483648});
            this.dy.Name = "dy";
            this.dy.Size = new System.Drawing.Size(69, 20);
            this.dy.TabIndex = 6;
            this.dy.Value = new decimal(new int[] {
            2,
            0,
            0,
            0});
            // 
            // label5
            // 
            this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(302, 338);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(21, 13);
            this.label5.TabIndex = 5;
            this.label5.Text = "dy:";
            // 
            // dx
            // 
            this.dx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.dx.DecimalPlaces = 1;
            this.dx.Location = new System.Drawing.Point(224, 335);
            this.dx.Minimum = new decimal(new int[] {
            100,
            0,
            0,
            -2147483648});
            this.dx.Name = "dx";
            this.dx.Size = new System.Drawing.Size(69, 20);
            this.dx.TabIndex = 4;
            this.dx.Value = new decimal(new int[] {
            2,
            0,
            0,
            0});
            // 
            // label3
            // 
            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(197, 338);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(21, 13);
            this.label3.TabIndex = 3;
            this.label3.Text = "dx:";
            // 
            // label4
            // 
            this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(132, 338);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(31, 13);
            this.label4.TabIndex = 2;
            this.label4.Text = "Color";
            // 
            // shadowColor
            // 
            this.shadowColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.shadowColor.BackColor = System.Drawing.Color.DarkGray;
            this.shadowColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.shadowColor.Cursor = System.Windows.Forms.Cursors.Hand;
            this.shadowColor.Location = new System.Drawing.Point(103, 333);
            this.shadowColor.Name = "shadowColor";
            this.shadowColor.Size = new System.Drawing.Size(23, 23);
            this.shadowColor.TabIndex = 1;
            this.shadowColor.Click += new System.EventHandler(this.colorClick);
            // 
            // resetShadow
            // 
            this.resetShadow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.resetShadow.Location = new System.Drawing.Point(8, 315);
            this.resetShadow.Name = "resetShadow";
            this.resetShadow.Size = new System.Drawing.Size(75, 57);
            this.resetShadow.TabIndex = 0;
            this.resetShadow.Text = "Reset";
            this.resetShadow.UseVisualStyleBackColor = true;
            this.resetShadow.Click += new System.EventHandler(this.resetShadow_Click);
            // 
            // shadow
            // 
            this.shadow.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.shadow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.shadow.Location = new System.Drawing.Point(8, 55);
            this.shadow.Name = "shadow";
            this.shadow.Size = new System.Drawing.Size(705, 254);
            this.shadow.TabIndex = 4;
            this.shadow.TabStop = false;
            // 
            // tabPage3
            // 
            this.tabPage3.Controls.Add(this.label15);
            this.tabPage3.Controls.Add(this.eAlpha);
            this.tabPage3.Controls.Add(this.label10);
            this.tabPage3.Controls.Add(this.sAlpha);
            this.tabPage3.Controls.Add(this.label7);
            this.tabPage3.Controls.Add(this.height);
            this.tabPage3.Controls.Add(this.label8);
            this.tabPage3.Controls.Add(this.gap);
            this.tabPage3.Controls.Add(this.label9);
            this.tabPage3.Controls.Add(this.resetReflections);
            this.tabPage3.Controls.Add(this.reflections);
            this.tabPage3.Location = new System.Drawing.Point(4, 22);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage3.Size = new System.Drawing.Size(721, 378);
            this.tabPage3.TabIndex = 2;
            this.tabPage3.Text = "Reflections";
            this.tabPage3.UseVisualStyleBackColor = true;
            // 
            // eAlpha
            // 
            this.eAlpha.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.eAlpha.DecimalPlaces = 2;
            this.eAlpha.Location = new System.Drawing.Point(573, 335);
            this.eAlpha.Maximum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.eAlpha.Name = "eAlpha";
            this.eAlpha.Size = new System.Drawing.Size(69, 20);
            this.eAlpha.TabIndex = 8;
            // 
            // label10
            // 
            this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(505, 338);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(59, 13);
            this.label10.TabIndex = 7;
            this.label10.Text = "End Alpha:";
            // 
            // sAlpha
            // 
            this.sAlpha.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.sAlpha.DecimalPlaces = 2;
            this.sAlpha.Location = new System.Drawing.Point(427, 335);
            this.sAlpha.Maximum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.sAlpha.Name = "sAlpha";
            this.sAlpha.Size = new System.Drawing.Size(69, 20);
            this.sAlpha.TabIndex = 6;
            this.sAlpha.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
            // 
            // label7
            // 
            this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(359, 338);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(62, 13);
            this.label7.TabIndex = 5;
            this.label7.Text = "Start Alpha:";
            // 
            // height
            // 
            this.height.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.height.Location = new System.Drawing.Point(273, 335);
            this.height.Maximum = new decimal(new int[] {
            1000,
            0,
            0,
            0});
            this.height.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.height.Name = "height";
            this.height.Size = new System.Drawing.Size(69, 20);
            this.height.TabIndex = 4;
            this.height.Value = new decimal(new int[] {
            20,
            0,
            0,
            0});
            // 
            // label8
            // 
            this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(226, 338);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(41, 13);
            this.label8.TabIndex = 3;
            this.label8.Text = "Height:";
            // 
            // gap
            // 
            this.gap.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.gap.Location = new System.Drawing.Point(148, 335);
            this.gap.Maximum = new decimal(new int[] {
            500,
            0,
            0,
            0});
            this.gap.Minimum = new decimal(new int[] {
            500,
            0,
            0,
            -2147483648});
            this.gap.Name = "gap";
            this.gap.Size = new System.Drawing.Size(69, 20);
            this.gap.TabIndex = 2;
            // 
            // label9
            // 
            this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(112, 338);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(30, 13);
            this.label9.TabIndex = 1;
            this.label9.Text = "Gap:";
            // 
            // resetReflections
            // 
            this.resetReflections.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.resetReflections.Location = new System.Drawing.Point(8, 315);
            this.resetReflections.Name = "resetReflections";
            this.resetReflections.Size = new System.Drawing.Size(75, 57);
            this.resetReflections.TabIndex = 0;
            this.resetReflections.Text = "Reset";
            this.resetReflections.UseVisualStyleBackColor = true;
            this.resetReflections.Click += new System.EventHandler(this.resetReflections_Click);
            // 
            // reflections
            // 
            this.reflections.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.reflections.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.reflections.Location = new System.Drawing.Point(8, 52);
            this.reflections.Name = "reflections";
            this.reflections.Size = new System.Drawing.Size(705, 257);
            this.reflections.TabIndex = 1;
            this.reflections.TabStop = false;
            // 
            // tabPage4
            // 
            this.tabPage4.Controls.Add(this.label16);
            this.tabPage4.Controls.Add(this.anchors);
            this.tabPage4.Controls.Add(this.edge);
            this.tabPage4.Controls.Add(this.label12);
            this.tabPage4.Controls.Add(this.label11);
            this.tabPage4.Controls.Add(this.resetSmoothness);
            this.tabPage4.Controls.Add(this.smoothness);
            this.tabPage4.Location = new System.Drawing.Point(4, 22);
            this.tabPage4.Name = "tabPage4";
            this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage4.Size = new System.Drawing.Size(721, 378);
            this.tabPage4.TabIndex = 3;
            this.tabPage4.Text = "Smoothness";
            this.tabPage4.UseVisualStyleBackColor = true;
            // 
            // anchors
            // 
            this.anchors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.anchors.FormattingEnabled = true;
            this.anchors.Items.AddRange(new object[] {
            "Top",
            "Bottom",
            "Left",
            "Right"});
            this.anchors.Location = new System.Drawing.Point(268, 319);
            this.anchors.Name = "anchors";
            this.anchors.Size = new System.Drawing.Size(145, 49);
            this.anchors.TabIndex = 9;
            // 
            // edge
            // 
            this.edge.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.edge.DecimalPlaces = 1;
            this.edge.Location = new System.Drawing.Point(138, 335);
            this.edge.Maximum = new decimal(new int[] {
            500,
            0,
            0,
            0});
            this.edge.Name = "edge";
            this.edge.Size = new System.Drawing.Size(69, 20);
            this.edge.TabIndex = 8;
            this.edge.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
            // 
            // label12
            // 
            this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(224, 338);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(36, 13);
            this.label12.TabIndex = 7;
            this.label12.Text = "Sides:";
            // 
            // label11
            // 
            this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(97, 338);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(35, 13);
            this.label11.TabIndex = 7;
            this.label11.Text = "Edge:";
            // 
            // resetSmoothness
            // 
            this.resetSmoothness.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.resetSmoothness.Location = new System.Drawing.Point(8, 315);
            this.resetSmoothness.Name = "resetSmoothness";
            this.resetSmoothness.Size = new System.Drawing.Size(75, 57);
            this.resetSmoothness.TabIndex = 3;
            this.resetSmoothness.Text = "Reset";
            this.resetSmoothness.UseVisualStyleBackColor = true;
            this.resetSmoothness.Click += new System.EventHandler(this.resetSmoothness_Click);
            // 
            // smoothness
            // 
            this.smoothness.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.smoothness.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.smoothness.Location = new System.Drawing.Point(8, 52);
            this.smoothness.Name = "smoothness";
            this.smoothness.Size = new System.Drawing.Size(705, 257);
            this.smoothness.TabIndex = 2;
            this.smoothness.TabStop = false;
            // 
            // colorDialog
            // 
            this.colorDialog.AnyColor = true;
            // 
            // label13
            // 
            this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.label13.Location = new System.Drawing.Point(8, 3);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(705, 46);
            this.label13.TabIndex = 13;
            this.label13.Text = "Just sketch a rectangle with the mouse on the drawing pane.";
            // 
            // label14
            // 
            this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.label14.Location = new System.Drawing.Point(8, 3);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(705, 49);
            this.label14.TabIndex = 14;
            this.label14.Text = "Just sketch a rectangle with the mouse on the drawing pane.";
            // 
            // label15
            // 
            this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.label15.Location = new System.Drawing.Point(8, 3);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(705, 46);
            this.label15.TabIndex = 14;
            this.label15.Text = "Just sketch a rectangle with the mouse on the drawing pane.";
            // 
            // label16
            // 
            this.label16.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.label16.Location = new System.Drawing.Point(8, 3);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(705, 46);
            this.label16.TabIndex = 14;
            this.label16.Text = "Use the reset button to update the view. Left is the modified one (smooth enabled" +
    "), with the original being on the right side.";
            // 
            // GraphicsForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(729, 404);
            this.Controls.Add(this.tabControl1);
            this.Name = "GraphicsForm";
            this.Text = "GraphicsForm";
            this.tabControl1.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            this.tabPage1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numRadius1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.roundRect)).EndInit();
            this.tabPage2.ResumeLayout(false);
            this.tabPage2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.blur)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dy)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dx)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.shadow)).EndInit();
            this.tabPage3.ResumeLayout(false);
            this.tabPage3.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.eAlpha)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.sAlpha)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.height)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gap)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.reflections)).EndInit();
            this.tabPage4.ResumeLayout(false);
            this.tabPage4.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.edge)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.smoothness)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPage1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Panel fillColor;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Panel borderColor;
        private System.Windows.Forms.Button resetRect;
        private System.Windows.Forms.PictureBox roundRect;
        private System.Windows.Forms.TabPage tabPage2;
        private System.Windows.Forms.ColorDialog colorDialog;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Panel shadowColor;
        private System.Windows.Forms.Button resetShadow;
        private System.Windows.Forms.PictureBox shadow;
        private System.Windows.Forms.NumericUpDown numRadius3;
        private System.Windows.Forms.CheckBox checkRadius3;
        private System.Windows.Forms.NumericUpDown numRadius1;
        private System.Windows.Forms.CheckBox checkRadius1;
        private System.Windows.Forms.NumericUpDown numRadius4;
        private System.Windows.Forms.CheckBox checkRadius4;
        private System.Windows.Forms.NumericUpDown numRadius2;
        private System.Windows.Forms.CheckBox checkRadius2;
        private System.Windows.Forms.NumericUpDown blur;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.NumericUpDown dy;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.NumericUpDown dx;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TabPage tabPage3;
        private System.Windows.Forms.PictureBox reflections;
        private System.Windows.Forms.Button resetReflections;
        private System.Windows.Forms.NumericUpDown eAlpha;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.NumericUpDown sAlpha;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.NumericUpDown height;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.NumericUpDown gap;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.TabPage tabPage4;
        private System.Windows.Forms.PictureBox smoothness;
        private System.Windows.Forms.Button resetSmoothness;
        private System.Windows.Forms.NumericUpDown edge;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.CheckedListBox anchors;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.Label label16;
    }
}

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
Chief Technology Officer
Germany Germany
Florian lives in Munich, Germany. He started his programming career with Perl. After programming C/C++ for some years he discovered his favorite programming language C#. He did work at Siemens as a programmer until he decided to study Physics.

During his studies he worked as an IT consultant for various companies. After graduating with a PhD in theoretical particle Physics he is working as a senior technical consultant in the field of home automation and IoT.

Florian has been giving lectures in C#, HTML5 with CSS3 and JavaScript, software design, and other topics. He is regularly giving talks at user groups, conferences, and companies. He is actively contributing to open-source projects. Florian is the maintainer of AngleSharp, a completely managed browser engine.

Comments and Discussions