CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    116

    switching between the forms

    hi friends


    how to switch between the forms

    i have MDI and three forms in this MDI SO when i open the first form and then open the second one it close the first one and again i can open the first one all this done from menu bar.

    code please


    thank u

  2. #2
    Join Date
    Aug 2002
    Location
    Kerala
    Posts
    1,183

    Re: switching between the forms

    Unload the other forms in your menu click event.

  3. #3
    Join Date
    Feb 2006
    Location
    Athens, Greece
    Posts
    111

    Re: switching between the forms

    if i understood well, u mean that when u open each form, each new form is appeared onto the previous one.
    in that case u have to declare the specific place into the mdi form that u want to load each form.

    eg.
    Me.Left = (mdiMain.Width - Me.Width) / 2
    Me.Top = (mdiMain.Height - Me.Height) / 2

    this code will load each form into the center of the mdi. if you "play" with the numbers + or - 50,120... u will have different positions.

    hope that is the answer that u want.

    good luck

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