You can either pass a reference to the form to the child form, so that it
can refer to the public members.
Alternative: you can provide a static method on the form that will return
the object. You do not need a reference to the object in the calling code
to call the static method. You can just use the name of the class. This is
a Singleton.
Take a look at
http://www.pobox.com/~skeet/csharp/singleton.html
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"eXtreme" <eX*****@community.nospam> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
I made the object Public and form it is on Public but a dialog spun from
that Form is not able to see it.
Where do I check the visibility?
Thanks,
"AlexS" <sa***********@SPAMsympaticoPLEASE.ca> wrote in message
news:uH**************@TK2MSFTNGP12.phx.gbl... Make it public and visible in all classes
HTH
Alex
"eXtreme" <eX*****@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... How do I make a dataset available to all forms (including dialogs) in a
Windows Form based application?
Thanks,
eXtreme