K
KC
I'm trying to build a simple text editor in part of my app. Right now I'm
just testing the basics of the KeyPress event handler. The code is
basic...real simple. I'm just testing stuff -
Private Sub txtConsole_KeyPress(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtConsole.KeyPress
Dim ch As Char
If System.Char.IsControl(e.KeyChar) Then Exit Sub
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
MsgBox(FTPline)
Else
FTPline = FTPline + e.KeyChar.ToString
End If
End Sub
The problem is the app never gets to the code. Why!? I went to the textbox
and chose the KeyPress event and then stuck the code in it. When I put a
breakpoint in the code it say the breakpoint will not be hit and, "No
symbols have been loaded for this document."??? Is this another one of those
VB.net 'improvements'??
just testing the basics of the KeyPress event handler. The code is
basic...real simple. I'm just testing stuff -
Private Sub txtConsole_KeyPress(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtConsole.KeyPress
Dim ch As Char
If System.Char.IsControl(e.KeyChar) Then Exit Sub
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
MsgBox(FTPline)
Else
FTPline = FTPline + e.KeyChar.ToString
End If
End Sub
The problem is the app never gets to the code. Why!? I went to the textbox
and chose the KeyPress event and then stuck the code in it. When I put a
breakpoint in the code it say the breakpoint will not be hit and, "No
symbols have been loaded for this document."??? Is this another one of those
VB.net 'improvements'??