CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 22nd, 2005, 04:45 AM
    btscl btscl is offline
    Junior Member
     
    Join Date: Jul 2005
    Posts: 4
    btscl is an unknown quantity at this point (<10)
    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
    Reply With Quote
      #2    
    Old April 6th, 2008, 09:01 AM
    talalhallaj talalhallaj is offline
    Junior Member
     
    Join Date: Apr 2008
    Posts: 1
    talalhallaj is an unknown quantity at this point (<10)
    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
    Reply With Quote
      #3    
    Old April 15th, 2008, 05:23 PM
    robbcorp robbcorp is offline
    Junior Member
     
    Join Date: Jul 2006
    Posts: 13
    robbcorp is an unknown quantity at this point (<10)
    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.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 05:52 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009