Results 1 to 5 of 5

Thread: A real Newbie question about forms...

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    South Australia
    Posts
    3

    Question A real Newbie question about forms...

    Sorry for this question I am sure it has come up a few times already bu anyway...

    I am quite familiar with VB6 and have just install .Net.

    All I am trying to do is close one form and open the next??

    I seem to be able to open the next form ok but cant work out how to close the previous form behind it??

    in VB6 this was simple eg:

    Unload Me
    Form2.Show

    In .Net I have got as far as:

    Public Class frmSplash
    Inherits System.Windows.Forms.Form

    Dim Test As Form

    Private Sub pbxTitle01_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pbxTitle01.Click

    Test = New frmMainMenu()
    Test.Show()

    End Sub

    End Class

    But as soon as I try and use a "Close" it simply closes everything???

    Can can someone point me in the right direction, sorry for the stupid question.

    Regards

    Merlyn

  2. #2
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    Your in the wrong forum, got to .NET

  3. #3

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    If you use the method Close inside a startup form (the main form for your app) then ofcourse this will close the app , otherwise it should close the form itself not the app .

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Or you can hide it whether main form or anything else using the method : 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