check boxes in C#.net 2005
-
hi all, how can i create checkboxes dynamically in a C#.net2005 WEindows application.. Thanks in advance..
-
hi all, how can i create checkboxes dynamically in a C#.net2005 WEindows application.. Thanks in advance..
//create a new checkbox CheckBox myBox = new CheckBox(); //set if (if required) myBox.Checked = true; //add it to the parent myPanel.Controls.Add( myCheckBox ); //assumes myPanel exists
Regards Malc *********************************************
-
hi all, how can i create checkboxes dynamically in a C#.net2005 WEindows application.. Thanks in advance..
The example you were given is sort of right, but if you want to see the checkbox whre you want it, you need to set the Left, Top, Width and Height properties as well.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog