Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear C# Team,

I have a check box list in my windows form containing provinces list of a country, I would like to enable the end user of this form that can add and save it to my province check box list at run time. When this application deployed, sometime if a new province added to the country.
Posted

1 solution

Dynamically Adding Controls is as follows

Create a new instance of the control

Button b = new Button();

Then all you need to do is set the location and the rest of the properties you want. For that button.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900