Hello Every one
I have worked with VB.NET two years back. I have lost little touch with that and trying to get back.
I have to use key down event on text box in VB form.
The code for the event looks like this:
Private Sub TextBox1_Keydown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles textBox1.KeyDown
If e.KeyCode = keys.Enter Then
I am using sharp development open source IDE.
I am getting the following error while building
Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
when tried to declare like this
private withevents textBox1 as textbox
The following error comes:
'textBox1' is already declared as 'Private WithEvents textBox1 As System.Windows.Forms.TextBox' in this class. (BC30260)
Can any one help me out?
Thanks a lot.