Creating Custom Controls???

  • Thread starter Thread starter Darryn Ross
  • Start date Start date
D

Darryn Ross

Hi

I was wondering if anyone had any information that could help me understand
how to create a custom control, i have had a look on the web and can't seem
to find any simple beginner examples.

any help would be appreciated.

Regards

Darryn
 
Hi,

Follow me

1. Create a Windows form project in ur Visual IDE...
2. Go to project Solution
3. Right click on the project name..
4. Select Add>>Add User Controls...
5. Click on the recently added user control to view it in design mode
6. Open the form (main) in design mode
7. Go to Tool Bar
8. Select My UserControl
9. you will see UserControl1 listed there..
10. Click on it and add it to ur form

this is the pretty basic usercontrol ...

But you can make the user control more complicated and use it as ur
cutomized control as well..

Not only this you can create some other control whcih inherent from existing
control such as button .. text box.. etc as well..

Regards,
Nirosh.
 
Darryn Ross said:
I was wondering if anyone had any information that could help me understand
how to create a custom control, i have had a look on the web and can't seem
to find any simple beginner examples.

Darryn,

You don't write if you want to create a custom control for windows or
web, so I include links for both of them:

Web:
http://msdn.microsoft.com/library/d...alkthroughdevelopingsimplewebformscontrol.asp

Windows:
http://msdn.microsoft.com/library/d...nwalkthroughcreatingsimplewinformscontrol.asp


Regards,
Knut-Olav Traa
Bekk Consulting
 
Back
Top