Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a requirement to display a user control multiple times in windows form application. please help me what is the best controls to use to do it. can we add multiple user controls to single panel/single control ?
for sample what my requirement is please visit the link http://stackoverflow.com/questions/25658252/how-to-make-it-visual-studio-2008-windows-form-application?noredirect=1#comment40095139_25658252[^]
Posted
Updated 3-Sep-14 21:08pm
v2
Comments
Richard MacCutchan 4-Sep-14 3:48am    
So just create a form with multiple controls; what is the problem?
Kanha Daly 4-Sep-14 5:17am    
How to add it to main form... And how to create it dynamically. please explain me with code. Thank You.
Richard MacCutchan 4-Sep-14 6:27am    
Sorry I don't really know what you are trying to achieve here, or what your difficulty is. Adding controls to a form is a simple matter of dragging from the Toolbox onto your form. If you need to do it dynamically then copy the code from the generated form's source.

To display the records like this do the following steps:

1. Get the data in Dataset
2. Create the XML File from Dataset
3. Read the Nodes and bind with Treeview
 
Share this answer
 
You may use a single control, like for instance the ListView[^] or the DataGridView[^] to show multiple items.
 
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