ADO DOT NET
Centurion
- Joined
- Dec 20, 2006
- Messages
- 160
I just cannot understand why it is not working?
It seems everything is alright:
Also in this line:
Me.OKButton.Focus = Focus
I get this error:
Error 1 Expression is a value and therefore cannot be the target of an assignment.
It seems everything is alright:
Visual Basic:
Delegate Sub SetFocusCallback(ByVal Focus As Boolean)
Private Sub SetFocus(ByVal Focus As Boolean)
If Me.OKButton.InvokeRequired Then
Dim d As New SetFocusCallback(AddressOf SetFocus)
Me.Invoke(d, New Object() {Focus})
Else
Me.OKButton.Focus = Focus
End If
End Sub
...
Me.SetFocus(True)
...
Me.OKButton.Focus = Focus
I get this error:
Error 1 Expression is a value and therefore cannot be the target of an assignment.