Enabling a button on another form

dougancil

Well-known member
Joined
Jun 29, 2010
Messages
50
Programming Experience
Beginner
I have 4 forms. I have a button on form2 that when pressed, I want it to enable a button on form1.

What I've tried is this:
VB.NET:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Form1.Button3.Enabled
    End Sub

but its telling me that the property access must assign to the property or use it's value.

Can anyone help with this error?

Thank you

Doug
 
Back
Top