Author Topic: Show and Hide  (Read 899 times)

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Show and Hide
« on: October 03, 2019, 06:22:11 PM »
I am running an app with basically three forms. The first form (MainForm) does  a line of code
operator_reports.Show()
That is the 3rd form. After .5 seconds it does another line of code.
operator_reports.Hide()
That all works fine, and I can see the form display and then go away. Now I change to the second form (Parameters)
It has a button on it that runs a routine as follows.
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Me.Hide()
        operator_reports.Show()

    End Sub

When this button is clicked it goes to the operator_reports screen for a second then bombs out back to visual studio. The program is still running but the forms are not displayed? If I remove the Me.Hide() from the above it will go to operator_reports for a second and then right back to the parameter form. Any suggestions?

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Show and Hide
« Reply #1 on: October 03, 2019, 07:53:33 PM »
I found it.

The timer on form one was continuing to run and turning off form 3.