WelshyWizard
IS-IT--Management
Hi all,
I've got 2 forms, Form1 and Form2.
Pressing a button on Form1 sets Form1.enabled = False and also opens Form2. Pressing a button on Form2 should set Form1.Enabled = True and close itself. Although Form2 does close, Form1 remains disabled.
My code for enabling Form1 is as follows:
Does anyone have any tips on how to get this to work and what I'm doing wrong?
Cheers
Today is the tomorrow you worried about yesterday - and all is well.....
I've got 2 forms, Form1 and Form2.
Pressing a button on Form1 sets Form1.enabled = False and also opens Form2. Pressing a button on Form2 should set Form1.Enabled = True and close itself. Although Form2 does close, Form1 remains disabled.
My code for enabling Form1 is as follows:
Code:
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
Dim M1 As New Form1
M1.Enabled = True
Me.Close()
End Sub
Does anyone have any tips on how to get this to work and what I'm doing wrong?
Cheers
Today is the tomorrow you worried about yesterday - and all is well.....