How to Create Usercontrol in Windows Form Application


Setp1 : Create a Windows Forms Control Library Project.

step1.gif

Step2 : Add  a new UserControl in this project.

step2.gif

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

step3.gif

Step 4 : Add a new Windows Forms Application.

step4.gif

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

step5.gif

Step 6 : Now run the Windows From Application.

step6.gif



Similar Articles