-1

My first form is a menu box, when I click on a button I use the following:

 Private Sub btn_dbfinder_Click(sender As Object, e As EventArgs) Handles btn_dbfinder.Click
        Me.Hide()
        Database.Show()

    End Sub

Is there a way to make Database the main form so I can close Me / Home (not hide)

The reason is because if a user closes down Database it won't end the application, Home is just running hidden.

Hope this makes sense.

also - I have tried on google before, but my googling skills are that good today! I should think it's an easy fix? :-)

SamCramphorn
  • 143
  • 1
  • 2
  • 14

2 Answers2

0

You can set the properties of the project to select "When last form closes" in the shutdown mode dropdown

Update:-

"Project" menu -> 'YourApp' Properties... -> Application Tab

find : "Shutdown Mode"

Change from

"When startup form closes" --> "When last form closes"
Mike Lammers
  • 542
  • 9
  • 27
-1

You should first show the form you want to open, after that you can close your other form.

try this :

Database.Show()
Me.Hide()
Mand
  • 499
  • 1
  • 5
  • 25