Click here to Skip to main content
15,793,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
I have datareader that fills from it the data into divs drawing in the runtime.
now in need to create check box with them in the runtime .
Please help...
Updated 8-Mar-11 3:25am

Share this answer
Rubaba 8-Mar-11 13:00pm    
best way !!
Hope this[^] might help you.
Share this answer
CheckBox cb = new CheckBox();
//You can set the values using properties
//From left , right position
//Height , width
cb.Left = 50;
Share this answer
moon2011 9-Mar-11 4:13am    
thanks alot, i have tried it but the problem that i fill 50 checkbox for example, (this) makes all check boxes in the same div.
i want to make every one iun adiv,, how is that?
moon2011 9-Mar-11 6:06am    
look, in your soultion you write "this.controls.Add(cb) , right?" , i made "containerdiv.controls.add(cb)" that id because i need to fill these checkboxes in adiv.
but now i need to make divcontainer as abig div and include small divs for every checkbox,
you get it??
u can create it dynamically as

CheckBox a = new CheckBox();
            a.Checked = true;

:-D :laugh: ;) ;P :( :rolleyes: :omg:
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