I am building a custom user control in vb.net 2005, and I want that when the control is dragged and droped on a form, a popup screen appears that will give the user combo boxes that the user can select from where these selections willl then be put into various property fields of the control. The data in these combo boxes will comes from a sql database.
I know that you can populate the control properties with a selection list by using a hard coded Enum statement in the coding of the control.
Public Enum Direcction
North
South
East
West
End Enum
But I have never found a way that a enum statement can be dynamically done with a query, that is why I am trying a popup screen approach.
I have seen this done before in controls I have bought or downloaded where a popup screen appears when the control is dragged to the form that gives you the ability to modify properties, but I can not find any information on how to program this. Can someone send me a link where I can see how to do this in VB code.
I know that you can populate the control properties with a selection list by using a hard coded Enum statement in the coding of the control.
Public Enum Direcction
North
South
East
West
End Enum
But I have never found a way that a enum statement can be dynamically done with a query, that is why I am trying a popup screen approach.
I have seen this done before in controls I have bought or downloaded where a popup screen appears when the control is dragged to the form that gives you the ability to modify properties, but I can not find any information on how to program this. Can someone send me a link where I can see how to do this in VB code.