How to create Custom User Control
Step 1
You can create custom user control to allow rapid application development. To create a custom control, go to Visual Studio.Net.
Step 2
Go to File and select New then choose Project and select Window Application.
Step 3
Once your project has been created, go to File and select Add New Item.
We will create Custom User control that looks something like this.
Step 4
So just click on UserControl1.vb [Design] tab and then proceed to create a textbox and a button here.
Step 5
Then you can Build it.
Your control which is call UserControl1 will appear in your Toolbox. To use it, click on your Form1 and then drag the user control over your form.
It will look something like this.
Step 6
If you have another form called Form2, by dragging the user component over would allow you to create your control rapidly without having to redesign it.
No comments:
Post a Comment