G
Guest
I have an app with form1 and form2. Form1 has a label control. Form2 has a checkbox and OK button. By default the label on form1 is hidden. When I lauch my app form1 is the default. I right click on the form and select "Add Labels" from the context menu. This takes me to form2 where I can then select the checkbox if I want to turn on the label back on form1. This works great. I then select the "OK" button on form2 and executed the following code
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Clic
Dim frm1 As New Form
frm1.Show(
Me.Close(
End Su
This returns me to form1 and sure enough, the label is now visible. My problem is this. SInce the label is visible, when I return to form2 again I want the checkbox to be checked. I can't seem to get this to happen. I've tried to check the visible property of the label on form1 in the form2.show event, the form2.gotfocus event, the form2.load event and a few others but the debugger always reports the status of the following code as false
Dim frm1 As New Form
If frm1.label1.Visible = True The
checkbox1.Checked = Tru
End I
If declared everything everywhere and am just lost. WHat am I missing here
Thank you
Joh
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Clic
Dim frm1 As New Form
frm1.Show(
Me.Close(
End Su
This returns me to form1 and sure enough, the label is now visible. My problem is this. SInce the label is visible, when I return to form2 again I want the checkbox to be checked. I can't seem to get this to happen. I've tried to check the visible property of the label on form1 in the form2.show event, the form2.gotfocus event, the form2.load event and a few others but the debugger always reports the status of the following code as false
Dim frm1 As New Form
If frm1.label1.Visible = True The
checkbox1.Checked = Tru
End I
If declared everything everywhere and am just lost. WHat am I missing here
Thank you
Joh