How to enable a button on another form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dougancil
    Contributor
    • Apr 2010
    • 347

    #1

    How to enable a button on another form

    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:

    Code:
      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
  • hikmetrza

    #2
    Form1.Button3.E nabled = true

    Comment

    Working...