By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,656 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,656 IT Pros & Developers. It's quick & easy.

Sharing data between multiple dialog boxes in a winform applicatio

P: n/a
Hello,

My application, winform, need to share data between multiple dialog boxes?
What would be the best way to do it?

Thanks,
EitanB

Mar 16 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Put your sharing data in a object, and create it's instance before your
dialog has created.
Transfer it's refrence to all your dialog boxes,then you can access the data
in the object.

Make sure,just one instance is create.

Extremely,you write a singleton class, so that all your class in project can
sharing data.
"Eitan" <Ei***@discussions.microsoft.com写入消息新闻:D0*** *******************************@microsoft.com...
Hello,

My application, winform, need to share data between multiple dialog boxes?
What would be the best way to do it?

Thanks,
EitanB


Mar 17 '07 #2

P: n/a
Thanks,
Eitan

"gshzheng" wrote:
Put your sharing data in a object, and create it's instance before your
dialog has created.
Transfer it's refrence to all your dialog boxes,then you can access the data
in the object.

Make sure,just one instance is create.

Extremely,you write a singleton class, so that all your class in project can
sharing data.
"Eitan" <Ei***@discussions.microsoft.com脨麓脠毛脧没脧垄脨 脗脦脜:D0**********************************@micros oft.com...
Hello,

My application, winform, need to share data between multiple dialog boxes?
What would be the best way to do it?

Thanks,
EitanB


Mar 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.