Menu changes Form Size

Discussion in 'Questions (Windows Mobile)' started by BPak, May 5, 2007.

  1. BPak

    BPak Active Member Licensed User

    I used the Designer to create a prog with 2 Forms. Running the app shows the Forms to be of the same size.

    When I open Designer and Add a Menu to Form1 and then run the app I find the Form1 Size is different.

    Why does a Menu in a Form make the Form display bigger?

    How can I keep the Forms the same Size?

    Code:
    Sub Globals

    End Sub

    Sub App_Start
       Form1.Show
    End Sub

    Sub Button1_Click
       Form2.Show
    End Sub

    Sub Button2_Click
       Form2.Close
    End Sub
     

    Attached Files:

    Last edited: May 6, 2007
  2. Erel

    Erel Administrator Staff Member Licensed User

    When you add a menu the form's size increases (on the desktop).
    This is done to keep the size of the controls space equal to the device.
    You will need to add menus to all your forms if you want to keep them the same size.
     
  3. BPak

    BPak Active Member Licensed User

    Ok - The Forms with or without Menus are same size when compiled to EXE and installed on PDAs!

    When it is compiled as an EXE for Desktop and sent out to be run on the Desktop for Clients who dont have PDA will it still have different Size Forms if only one of the forms has a Menu. That alright, just have to explain the reason.

    Thanks for the Prompt answer.
     
Loading...