Hello,
J'ai besoin d'afficher les deux RadioButton's de mon GroupBox côte à côte, parce qu'ils doivent prendre place dans une rangée de Button's. Comment faire ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
            this.btn_ViewEdit = new GroupBox();
            this.btn_ViewEdit.Text = ".";
            this.rb_Edit = new RadioButton();
            this.rb_Edit.Text = "Edit";
            this.rb_Edit.Name = "Edit";
            this.rb_Edit.AutoSize = true;  // Width = 5;  // 
            this.rb_View.Location = new Point(this.rb_Edit.Right + 0, 0);
            this.rb_Edit.FlatStyle = FlatStyle.System;
            this.rb_View = new RadioButton();
            this.rb_View.Text = "View";
            this.rb_View.Name = "View";
            this.rb_View.AutoSize = true;  // Width = 5;  // 
            this.rb_View.Location = new Point(this.rb_Edit.Right + 8, 0);
            this.rb_View.Checked = true;
            this.btn_ViewEdit.Controls.Add(this.rb_Edit);
            this.btn_ViewEdit.Controls.Add(this.rb_View);
            this.btn_ViewEdit.TabIndex = 4;
            this.btn_ViewEdit.AutoSize = true;
            this.btn_ViewEdit.Click += new EventHandler(onBtn_ViewEdit_Click);
            this.btn_ViewEdit.Location = new Point(this.btn_Refresh.Right + 10, 0);
            this.Right_SplitPanel.Panel2.Controls.Add(this.btn_ViewEdit);
...
        private GroupBox btn_ViewEdit;
        public RadioButton rb_Edit;
        private RadioButton rb_View;
Merci d'avance.