Results 1 to 6 of 6

Thread: Howto hide a Form in VB.net

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    35

    Howto hide a Form in VB.net

    hello guys

    I remember that the command form1.visible = false was the command to hide a form. This does not seem to be working in VB.net
    so my question is
    Howto hide a Form in VB.net ??

  2. #2
    Lively Member
    Join Date
    Feb 2003
    Location
    UK
    Posts
    95

    Re: Howto hide a Form in VB.net

    Originally posted by olger901
    Howto hide a Form in VB.net ??
    have you tried Form.Hide()?

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    35
    doesnt work

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    try this :
    VB Code:
    1. Form1.Visible=False

  5. #5
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Maybe you are trying to make your main form start invisible. If that's the case you can not do it by trying Form.Hide or Form.Visible=False.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  6. #6
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123
    It depends on what your doing but this will work in some circumstances:

    Me.ActiveForm.Hide()

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