Inheritance: System.Windows.Forms.Button
Exemplo n.º 1
0
 private void add_button(string text,EventHandler evt,int index)
 {
     var btn = new VButton();
     btn.Text = text;
     btn.Left = this.Width - 35;
     btn.Top = index*80;
     btn.Anchor = AnchorStyles.Right;
     btn.Width = 20;
     btn.Height = 75;
     Controls.Add(btn);
     btn.Click += evt;
 }
Exemplo n.º 2
0
        private void add_button(string text, EventHandler evt, int index)
        {
            var btn = new VButton();

            btn.Text   = text;
            btn.Left   = this.Width - 35;
            btn.Top    = index * 80;
            btn.Anchor = AnchorStyles.Right;
            btn.Width  = 20;
            btn.Height = 75;
            Controls.Add(btn);
            btn.Click += evt;
        }
Exemplo n.º 3
0
        private void add_button(string text, EventHandler evt, int index)
        {
            // code for vertical buttons on the right, they are custom controls
            // without support for form designer, so we initiate them in code
            var btn = new VButton();
            btn.Text = text;
            btn.Anchor = AnchorStyles.Right;
            btn.Width = 20;
            btn.Height = 75;
            btn.Top = index * 80;
            //btn.Left = this.Width - 35;
            //btn.Left = btn_help.Right - btn.Width;
            btn.Left = 5;
            Controls.Add(btn);
            btn.Click += evt;

            vbtn.Add(btn);
        }
Exemplo n.º 4
0
        private void add_button(string text, EventHandler evt, int index)
        {
            // code for vertical buttons on the right, they are custom controls
            // without support for form designer, so we initiate them in code
            var btn = new VButton();

            btn.Text   = text;
            btn.Anchor = AnchorStyles.Right;
            btn.Width  = 20;
            btn.Height = 75;
            btn.Top    = index * 80;
            //btn.Left = this.Width - 35;
            //btn.Left = btn_help.Right - btn.Width;
            btn.Left = 5;
            Controls.Add(btn);
            btn.Click += evt;

            vbtn.Add(btn);
        }