Results 1 to 9 of 9

Thread: Hiding, showing, and unloading a form?

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210

    Hiding, showing, and unloading a form?

    I'm new to VB.Net and I have to make a Lucky 7 program that I already did in VB.

    But it doesn't seem to like [frmForm.Show] & [frmForm.Hide] &[Unload frmForm].

    Thanks in advance.

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    To show a form:
    Dim f as New frmForm()
    f.show()

    To unload a form:
    f.Close()

  3. #3
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    Dim F As New Form1()

    F.Show
    F.Close






    To Late ohh well

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Don't you hate that...lol.

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    declaring your variables in a module is the easiest way ! then you can code just like vb6 without need for declaring your forms variables

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210
    What about hiding a form? Aren't there both hiding/showing and loading/unloading a form?

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I guess the same .

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210
    There are only Show and Close?

    For both hiding/showing and loading/unloading?

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Try the visible property. Set it to true to make it visible, and false to make it invisible.

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