Results 1 to 5 of 5

Thread: form issues

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    2

    form issues

    i know this is trivial but i cant for the life of me ****ing find how to do this


    simple really


    how to load a separate form,

    you got ur index form, then u want to call another form to be visible,


    and its vb.NET

  2. #2
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    I'm guessing you are using the old VB syntax of

    form1.show

    or something similar.

    Under .net you need to do something like:

    Code:
    Dim f As New frmMain()
    System.Windows.Forms.Application.Run(f)
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    2
    yer i figured out a dif way,

    i created my form frmLogon,

    then under a buttons clik proceedure i declared a var as that form creating an instance of it then showing it

    Dim frmLogon as frmLogon ' second frmLogon is the actual form

    frmLogon.ShowDialog()


    that does it

  4. #4
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Yes, that also gets it.

    Of course you are launching a modal form, but that's cool if that's what you want.

    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  5. #5
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Then modal should be okay for that.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

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