Home All Groups Group Topic Archive Search About

Can I bind a property directly to a setting?

Author
8 May 2007 11:28 PM
Peter Duniho
Given, for example, a component (a control, let's say) with some property 
X, can I bind that property to an application setting Y 
(Properties.Settings.Default.Y) in the designer somehow?

I've tried playing around with the data binding stuff, but it appears to 
strictly require some actual database source.  If this is possible, I 
haven't found the magic incantation to get it to work.

Thanks,
Pete

Author
8 May 2007 11:49 PM
Alvin Bruney [MVP]
To bind the target must support a specific interface (idatasource if memory
serves me correctly).

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


Show quote
"Peter Duniho" <NpOeStPe***@nnowslpianmk.com> wrote in message
news:op.tr07idfz8jd0ej@petes-computer.local...
> Given, for example, a component (a control, let's say) with some property
> X, can I bind that property to an application setting Y
> (Properties.Settings.Default.Y) in the designer somehow?
>
> I've tried playing around with the data binding stuff, but it appears to
> strictly require some actual database source.  If this is possible, I
> haven't found the magic incantation to get it to work.
>
> Thanks,
> Pete
Author
9 May 2007 12:34 AM
Peter Duniho
On Tue, 08 May 2007 16:49:10 -0700, Alvin Bruney [MVP] <some guy without 
an email <"address>"> wrote:

> To bind the target must support a specific interface (idatasource if 
> memory serves me correctly).

So, is there a way to create an item in Properties.Settings.Default that 
implements that interface?

AddThis Social Bookmark Button