UserControl question

G

Guest

Hi,

I've created a UserControl with a property called BoundControl of type
Control--it refers to the control on the form to which the UserControl is
"bound" (not a databinding thing--kind of like a partner control). I've got
this property to show up in the properties window okay, but it displays with
a cbobox that lists all the controls on the form. Is there a way I can have
it display only those controls of certain types? (Currently the UserControl
can be "bound" to a listbox, cbobox, listview, or datetimepicker).

Thanks,
Nathan
 
M

Mad Murdoch

<Browsable(True)> _

Public ReadOnly Property BoundControl() As Control

Get

Return Me.ParentForm()

End Get

End Property
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top