Sharing data between multiple dialog boxes in a winform applicatio

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

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

Thanks,
EitanB
 
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.
 
Thanks,
Eitan

gshzheng said:
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.
 

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

Back
Top