UserControl with BindingSource

B

bruce_pearson

I have a UserControl that inherits from BindingSource and another
control that takes a BindingSource as a Property.

When both controls are placed on the form I need the designer to
recognize the control that is inherited from BindingSource as a
suitable target for the BindingSource property on the other control.

Can't find out how this is done. Some help requested.

Thanks,
-Bruce Pearson
 
B

bruce_pearson

I have a UserControl that inherits from BindingSource and another
control that takes a BindingSource as a Property.

When both controls are placed on the form I need the designer to
recognize the control that is inherited from BindingSource as a
suitable target for the BindingSource property on the other control.

Can't find out how this is done. Some help requested.

Thanks,
-Bruce Pearson

Not quite accurate...
When both controls are placed on the form I need the designer to
recognize the control that is inherited from BindingSource as a
suitable target for the DataSource (of the BindingSource property) on
the other control.

BP
 
S

Stoitcho Goutsev \(100\)

Bruce,

All this things can be done by providing custom designer from your user
control. The designer can filter out all the controls currently on the
design surface and show in the property windows only BindingSource inhertied
controls.

You haven't mentioned whether your control is win or web, so I assume you
are internested in windows forms. There is enough information on the net
regarding how to write desighers. You can start from here

http://windowsforms.net/Articles/default.aspx?PageID=1&Cat=Designer&ModuleFilter=131&tabindex=2
 

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