Click here to Skip to main content
16,005,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: stand alone any where Pin
Christian Graus2-Jun-05 16:29
protectorChristian Graus2-Jun-05 16:29 
GeneralRe: Why can't Microsoft...stand alone any where Pin
Anonymous2-Jun-05 17:54
Anonymous2-Jun-05 17:54 
GeneralRe: Why can't Microsoft...stand alone any where Pin
Christian Graus2-Jun-05 18:01
protectorChristian Graus2-Jun-05 18:01 
GeneralRe: Why can't Microsoft...stand alone any where Pin
Anonymous2-Jun-05 19:51
Anonymous2-Jun-05 19:51 
GeneralRe: Why can't Microsoft...stand alone any where Pin
Christian Graus5-Jun-05 10:53
protectorChristian Graus5-Jun-05 10:53 
GeneralRe: Why can't Microsoft...stand alone any where Pin
Nish Nishant2-Jun-05 19:08
sitebuilderNish Nishant2-Jun-05 19:08 
GeneralRe: Why can't Microsoft...stand alone any where Pin
Christian Graus5-Jun-05 10:47
protectorChristian Graus5-Jun-05 10:47 
GeneralMad with GroupBox!!!!! Help!!!! Pin
sparks_lu2-Jun-05 14:58
sparks_lu2-Jun-05 14:58 
Hello,

What I am trying to do is to add some radio buttons to a GroupBox dynamically. The number of radio buttons to add is differnet from time to time so I used a foreach loop to add the buttons to the GroupBox. But unfortunately, the GroupBox displays nothing apart from its border. Here is the unworking code:

GroupBox choiceGroupBox = new GroupBox();<br />
int buttonY = 0;<br />
choiceGroupBox.SuspendLayout();<br />
<br />
foreach(Object choice in choices) //"choices" is an ArrayList which holds a list of "choice"<br />
       {<br />
                RadioButton button = new RadioButton();	<br />
                button.Text = (string)choice;<br />
	button.Location = new Point(16,buttonY);<br />
                choiceGroupBox.Controls.Add(button);<br />
                buttonY += 5;<br />
       } <br />
choiceGroupBox.ResumeLayout();


I don't see anything wrong with this code but the GroupBox simply displays nothing......

This problem seems only happens when the radio buttons are created on the fly since I've tried to add a single radio button to the GroupBox and GroupBox works perfectly.

Could any one point me to something working? I am really getting mad with this "small" problemMad | :mad: .......

Thanks in advance!
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
MoustafaS2-Jun-05 15:03
MoustafaS2-Jun-05 15:03 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
sparks_lu2-Jun-05 15:38
sparks_lu2-Jun-05 15:38 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Marc Clifton2-Jun-05 15:15
mvaMarc Clifton2-Jun-05 15:15 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Christian Graus2-Jun-05 15:51
protectorChristian Graus2-Jun-05 15:51 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Marc Clifton2-Jun-05 16:15
mvaMarc Clifton2-Jun-05 16:15 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Christian Graus2-Jun-05 16:18
protectorChristian Graus2-Jun-05 16:18 
GeneralA tricky priority problem Pin
Snowjim2-Jun-05 14:12
Snowjim2-Jun-05 14:12 
GeneralRe: A tricky priority problem Pin
Christian Graus2-Jun-05 14:27
protectorChristian Graus2-Jun-05 14:27 
GeneralRe: A tricky priority problem Pin
Snowjim2-Jun-05 22:50
Snowjim2-Jun-05 22:50 
GeneralRe: A tricky priority problem Pin
S. Senthil Kumar3-Jun-05 2:29
S. Senthil Kumar3-Jun-05 2:29 
GeneralRe: A tricky priority problem Pin
Snowjim3-Jun-05 7:58
Snowjim3-Jun-05 7:58 
GeneralRe: A tricky priority problem Pin
S. Senthil Kumar3-Jun-05 8:13
S. Senthil Kumar3-Jun-05 8:13 
GeneralRe: A tricky priority problem Pin
Snowjim3-Jun-05 8:44
Snowjim3-Jun-05 8:44 
GeneralRe: A tricky priority problem Pin
Snowjim3-Jun-05 13:23
Snowjim3-Jun-05 13:23 
GeneralRe: A tricky priority problem Pin
Carsten Zeumer4-Jun-05 0:46
Carsten Zeumer4-Jun-05 0:46 
GeneralRe: A tricky priority problem Pin
Snowjim4-Jun-05 1:34
Snowjim4-Jun-05 1:34 
GeneralRe: A tricky priority problem Pin
Snowjim4-Jun-05 14:31
Snowjim4-Jun-05 14:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.