CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    121

    another easy question, load a new form...

    I created another form, how can I load, unload and comunicate betweent the forms,

    THANKS!
    Last edited by dky1e; June 21st, 2002 at 01:00 PM.

  2. #2
    Join Date
    Jun 2002
    Location
    Miami, Fl
    Posts
    8
    If you are familiar with Visual C++/MFC programming then follow the same process to load/unload a form and to communicate
    among them.

    // C# Example to display a string from a Text control in form2

    private void LoadSecondForm()
    {
    CForm2 form2 = new CForm2();
    form2.ShowDialog();

    MessageBox.Show(form2.MyText1.ToStr());
    }
    Juan Carlos Urbina
    Staff Software Engineer

  3. #3
    Join Date
    Feb 2002
    Location
    Spain
    Posts
    148
    Hi:

    You could try using the standard windows messaging mechanism (sendmessage y postmessage functions), but for .NET there's another yet powerfull way of doping that: Use Delegates.

    VictorL

  4. #4
    Join Date
    May 2002
    Posts
    121
    delegates? sounds interesting, could you post some links?(examples, info, etc...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured