Setp1 : Create a Windows Forms Control Library Project.

Step2 : Add a new UserControl in this project.

Step 3 : Drag a control to the User Control. Ex. I create a login from in user control.

Step 4 : Add a new Windows Forms Application.

Step 5 : Now you can see in the toolbox that you have a login control. Drag this control onto your from.

Step 6 : Now run the Windows From Application.


SubashPosted Jul 29, 2016, 8:38 AM
Nice Explanation
Ravneet BhenguraPosted Feb 10, 2016, 1:34 AM
how to call this UserControl form into Main()
Ammar ShaukatPosted Oct 25, 2015, 2:16 AM
Can we use it in more than 1 window form with each window must contain its own event handler of user control ?
Manjeet SinghPosted May 28, 2015, 1:20 AM
how to use user control or windows form on web Application in asp.net
RamKrishn MishraPosted Mar 27, 2014, 12:36 AM
Sir This thing done already but did they code on button Actuallualy not fired login button in your example. So just try to understand my Query
RamKrishn MishraPosted Mar 27, 2014, 12:27 AM
Your link have some errors "We have recently made changes to the site and resource you are looking for may have moved. Please try our search by typing your keyword in search at top and click Go. Again, sorry for inconvenience"
Mit ChauhanPosted Mar 20, 2014, 7:50 AM
@A Kakhziv: Put a public method in the usercontrol that does the refreshing. Now, onClosed event of the form you're mentioning, find the usercontrol instance by FindControl() method and call that public method. Simple...
Mit ChauhanPosted Mar 20, 2014, 7:49 AM
Good job Jayendra!!
A KAKHZIVPosted Mar 19, 2013, 6:30 PM
Hi Gohil, First thanks for the code to use UserControl. Do you know how to refresh a data of UserControl after closing another form. In this other form i make a update and after closing the form i want to see data updated in the UserControl . thanks. albert
Gaurav GuptaPosted Apr 23, 2012, 12:46 AM
Hi.. I want to know that Can I create methods or property of user controls, so that it used in actual window form application?
Arjun PanwareditedPosted Apr 10, 2012, 12:06 AMEdited Apr 10, 2012, 12:06 AM
I want to know user control has by default an empty textbox field or not.
Shubham SrivastavaPosted Apr 9, 2012, 5:49 PM
In this article you explained add user control in form, but i want to know how can we add user control dynamically ?