Example #1
0
        private void show()
        {
            box              = new GroupBox();
            button1          = new Button();
            button1.Location = new Point(50, 50);
            ElipseControl nn = new ElipseControl();

            nn.TargetControl  = button1;
            nn.CornerRadius   = 10;
            button1.Text      = "First Name";
            button1.BackColor = Color.Cyan;
            button1.FlatStyle = FlatStyle.Flat;
            button1.FlatAppearance.BorderSize  = 0;
            button1.FlatAppearance.BorderColor = Color.White;

            button1.ForeColor = Color.Blue;
            button1.Font      = new Font("Arial", 9, FontStyle.Bold);
            box.Controls.Add(button1);


            firstName             = new TextBox();
            firstName.Location    = new Point(150, 50);
            nn.TargetControl      = firstName;
            nn.CornerRadius       = 10;
            firstName.BorderStyle = BorderStyle.None;
            firstName.Font        = new Font("Arial", 15);
            firstName.Height      = firstName.PreferredHeight;
            firstName.Width       = 200;
            box.Controls.Add(firstName);
            box.AutoSize = true;

            pickRoom           = new ComboBox();
            pickRoom.Location  = new Point(150, 194);
            pickRoom.Width     = 150;
            nn.TargetControl   = pickRoom;
            pickRoom.FlatStyle = FlatStyle.Flat;

            nn.CornerRadius = 10;
            box.Controls.Add(pickRoom);


            this.Controls.Add(box);
        }
        private void show()
        {
            box              = new GroupBox();
            button1          = new Button();
            button1.Location = new Point(50, 50);
            ElipseControl nn = new ElipseControl();

            nn.TargetControl  = button1;
            button1.Text      = "First Name";
            button1.BackColor = Color.Cyan;
            button1.FlatStyle = FlatStyle.Flat;
            button1.FlatAppearance.BorderSize  = 0;
            button1.FlatAppearance.BorderColor = Color.White;
            nn.CornerRadius = 10;

            button1.ForeColor = Color.Blue;
            button1.Font      = new Font("Arial", 9, FontStyle.Bold);
            box.Controls.Add(button1);
            box.AutoSize = true;


            this.Controls.Add(box);
        }