Results 1 to 5 of 5

Thread: Trouble with forms

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Trouble with forms

    I'm a total newbie at VB7, been programming a little VB6, but not much.

    Anyhow, my question is:

    I made a simple form, with a menu. When i click on a menu, it is supposed to open(show) a new form.

    In VB6 it was easy, a simple frmAbout.Show and you were there. How does it work in VB7?

    Thx in advance

    Kindred

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    I had the same questionno a few weekies ago

    say you have the second form called frmBoo, you load it this way:

    Dim aForm as new frmBoo
    aForm.Show ()


    I think this worked, I dont have VB right now to test it
    HTH




    EEE and I forgot to congradulate your first post
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3
    Thank you so much

    i tried

    Dim frmBoo as new Form()
    frmBoo.ShowDialog ()

    but i didn't quite understand why i was getting a blank form

    Dim aForm as new frmBoo
    aForm.ShowDialog ()

    Works like a charm

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hehe I dont know what's showDialog for
    so the show method worked?



    oh and enjoy your stay on the forums
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3
    ShowDialog makes the form Modal.

    Modal is when you can't hide the form, unless you close it :-)

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