Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Dear Sir/Mam,

Please let me know the process of creating user control in C#.
I am using Windows 7 Platform. I want to create it in Windows Form Application


Please Help me as soon as possible.

Subrahmanyam
[DELETED]@yahoo.co.in

Thank You.

[edit]Email removed - OriginalGriff[/edit]
Posted
Updated 5-Feb-13 21:10pm
v3
Comments
OriginalGriff 6-Feb-13 2:51am    
Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know

1 solution

It's pretty easy.
Open VS and right click your project name in the Solution Explorer pane.
From the menu that pops up, select "Add...User Control..."
Give your control a sensible name, and press the "Add" button.
Drop controls from the toolbox onto the surface that appears, and add some code.
Build your project.
In the design view for one of your forms, look at the toolbox: at the top will be a new section with your project name as the header.
Your control will be there ready to drop onto your form.
 
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