Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

UserControl with BindingSource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bruce_pearson@hotmail.com - 19 Feb 2007 06:46 GMT
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
bruce_pearson@hotmail.com - 19 Feb 2007 07:12 GMT
On Feb 18, 10:46 pm, bruce_pear...@hotmail.com wrote:
> I have a UserControl that inherits from BindingSource and another
> control that takes a BindingSource as a Property.
[quoted text clipped - 7 lines]
> 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
Stoitcho Goutsev (100) - 19 Feb 2007 16:15 GMT
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


Signature

HTH
Stoitcho Goutsev (100)

> On Feb 18, 10:46 pm, bruce_pear...@hotmail.com wrote:
>> I have a UserControl that inherits from BindingSource and another
[quoted text clipped - 16 lines]
>
> BP

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.