How to share data source instance among several windows forms

How to share data source instance among several windows forms

Post by RmVyYWcgTG » Tue, 15 Mar 2005 19:21:02


I have a typed DataSet which holds my application data. I use it for data
binding in several forms. When setting the DataSet as a data source in my
form the UI designer generates code which creates a new instance of my
DataSet. So each form is referring to an own instance which's not my
intention. I want to share the single instance of my DataSet among all of the
forms but I don't know how to do this without loosing the comfort of the UI
designer. How can this be done? (and if not why)

Thanks in advance
Thomas Probst
 
 
 

How to share data source instance among several windows forms

Post by Jay Pond » Wed, 16 Mar 2005 23:41:30

It can't be done. Supposedly VS 2005 will have this feature.

On Mon, 14 Mar 2005 02:21:02 -0800, "Ferag Leittechnik"