custom control

cocol

Active member
Joined
Jul 23, 2010
Messages
30
Programming Experience
Beginner
hello!
i want to know how to add custom controls to vb.net.
thank you.
 
You can make a class that somehow inherits System.Windows.Forms.Contol and after compiling it, it'll show at the very top of the VS toolbox
 
You will need to start with one of the controls and program in the functionality of the other. EG, Inherit the System.Windows.Forms.ComboBox and add in the multi-column support you want.
 
Perhaps you mean "User Control"? (Project > Add User Control...) This is a control template where you add one or more controls to it and write the custom behaviour, later you add an instance of your custom user control as a single control to a form.
 
ok ,so now i want to know how i can find the property of each control so i can use them in my custum control,for example if my custom control i inherit combobox ,so hoe i can know the property of listbox and combobox so i can replace the methode in combobox where i click it ,to open a listbox?
thank you.
 
For a list of properties in any FW control simply check MSDN, it lists all the properties, constructors, methods, etc...
 
Back
Top