| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing Data Between Forms
I've created a new windows form application in VC++ .Net 2003 with multiple forms. Is there a simple way to pass data between the forms?
Any help would be greatly appreciated. Regards Carl |
|
#2
|
|||
|
|||
|
Re: Passing Data Between Forms
Hi Carl ,
we are now in the year 2008 , I'm working in C++/CLI 2005 anr I need as you need , to solution for same problem , have you any answer about it . thank you too much . Talal |
|
#3
|
|||
|
|||
|
Re: Passing Data Between Forms
What I have done in the past is if I have form that is data dependent and is spawned from a parent form, I simply pass the data in via the constructor of the child form.
That works pretty well in that scenario. I have also utilized a singleton class that has a large scope. So if I have a form that writes data to the singleton class, I can use that same instance of the singleton elsewhere, even on a different form. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|