I'm not a C programmer so I'm converting that code to VB.
I created a new class in the project with the following code:
Public Class ccTextBox
Inherits System.Windows.Forms.TextBox
Public Sub New()
Me.KeyDown = New KeyEventHandler(OnKeyDown)
End Sub
Public Sub OnKeyDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs)
If e.KeyCode = Keys.Enter Then
SendKeys.Send("{TAB}")
End If
End Sub
End Class
But this is giving me an error on 'Me.KeyDown' and 'New KeyEventHandler(OnKeyDown)'
Should I be importing something here?
Thanks.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only