kilgore666
asked on
How do I create a DLL for my user control?
I want to create a user control called BetterDataGrid which is essentially a refinement of the normal datagrid. I then want to be able to see an icon for my new control in the toolbox and be able to add my new control in exactly the same way as I would do for a normal datagrid.
My question is: I understand that one of the ways of getting the control into the toolbox is to create a dll for the control and then add it to the toolbox by right-clicking and choosing "Add", but how do I create a DLL? Currently my new control is in the form of a class (that inherits datagrid) and some supporting classes, and I have been testing the control by manually creating a new instance on the control in a simple 'main form':
dim params as new ParametersForBetterDataGri d
... ' Assign values to params hash
dim mycontrol as new BetterDataGrid(params)
mycontrol.parent = me ' make the datagrid appear on the form
The parameters hash contains things like the number and names and types of columns.
My question is: I understand that one of the ways of getting the control into the toolbox is to create a dll for the control and then add it to the toolbox by right-clicking and choosing "Add", but how do I create a DLL? Currently my new control is in the form of a class (that inherits datagrid) and some supporting classes, and I have been testing the control by manually creating a new instance on the control in a simple 'main form':
dim params as new ParametersForBetterDataGri
... ' Assign values to params hash
dim mycontrol as new BetterDataGrid(params)
mycontrol.parent = me ' make the datagrid appear on the form
The parameters hash contains things like the number and names and types of columns.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.