Create new controls in RunTime
-
Hello how do i create a new RadioButton in run time? i getting a list of name would like to create a radiobutton on the form within a panel . when i try :
RadioButton rbNew = new RadioButton ();
i getEmbedded statement cannot be a declaration or labeled statement
please advice thanks Have a nice Day -
Hello how do i create a new RadioButton in run time? i getting a list of name would like to create a radiobutton on the form within a panel . when i try :
RadioButton rbNew = new RadioButton ();
i getEmbedded statement cannot be a declaration or labeled statement
please advice thanks Have a nice DaySearching for the error brings up that you maybe put the statement inside of an if-statement, which isn't allowed. Try the following instead: RadioButton rbNew;
if (something)
{
rbNew = new RadioButton();
}If this doesn't help, please provide the surrounding code.
-
Searching for the error brings up that you maybe put the statement inside of an if-statement, which isn't allowed. Try the following instead: RadioButton rbNew;
if (something)
{
rbNew = new RadioButton();
}If this doesn't help, please provide the surrounding code.