ADO DOT NET
Centurion
- Joined
- Dec 20, 2006
- Messages
- 160
Hi,
I just wanna check if my check box on form is checked then enable a button in my safe thread.
If SaveCheckBox.Checked = True Then SaveButton.Enabled = True
But could not implement this.
It won't work!
Anyone can help me?
Thank you a lot and God bless you
I just wanna check if my check box on form is checked then enable a button in my safe thread.
If SaveCheckBox.Checked = True Then SaveButton.Enabled = True
But could not implement this.
Visual Basic:
Delegate Sub SetFocusCallback()
Private Sub SetFocus()
If Me.SaveCheckBox.InvokeRequired Then
Dim d As New SetFocusCallback(AddressOf Enabled)
Me.Invoke(d, New Object() {Enabled})
Else
If Me.SaveCheckBox.Checked = True Then SaveButton.Enabled = True
End If
End Sub
Anyone can help me?
Thank you a lot and God bless you