title: Trouble switching between projects/forms in vb.net
body: <p>I am working on a project in Visual Studio Community 2019 using VB.Net. I am developing a user interface wherein users start on one form (a sort of index, call it form 1) and select from their the next form they want to go to (say form 2). This part is working fine. The trouble is that after users finish in form 2, they should be directed back to form 1 to continue from here, and I can't get this to happen.  I need somehow to make the main menu a public shared form so that the other projects can access it but I can’t figure out how to do that.</p>
  <p>Here are the relevant lines from form 1:</p>
  <pre><code>    Public Class frmMainMenu
      Public Shared inst As frmMainMenu
      Private Sub frmMenu_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles MyBase.Load
         inst = Me
         Timer1.Start()
         Me.Show()
      End Sub
  
   Private Sub BtnGeology_Click(sender As Object, e As EventArgs) Handles 
    btnGeology.Click
          Dim formNew As New Geology.frmGeologyMenu
          formNew.Show()
          Timer1.Stop()
          Me.Hide()
      End Sub
  </code></pre>
  <p>And here are the relevant lines from form 2. I want lines 23 and 24 to return the user to the main menu, but it doesn't work.</p>
  <pre><code>Public Class frmGeologyMenu
      Public Sub frmGeologyMenu_Load(ByVal sender As System.Object, ByVal e As 
    System.EventArgs) Handles MyBase.Load
          lblTime.Text = 10
          Me.Show
      End Sub
   Private Sub BtnMainMenu_Click(sender As Object, e As EventArgs) Handles 
    btnMainMenu.Click
          inst.frmMainMenu.Show()
          inst.frmMainMenu.Timer1.Start()
          Me.Close()
      End Sub
  </code></pre>
  <p>I appreciate any help you can offer!</p>