#2 Need something like VB KeyPress

Would Be Nice
open
5
2004-10-20
2004-10-20
No

I would find it very useful to trap the entry of a <CR>
character in an edit box. In my VB6 programs, I very
frequently use KeyPress, as in this example:

' Capture <CR> and use it to set focus
Private Sub txtDateTo_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
cmdPrintWorksheets.SetFocus
KeyAscii = 0
End If
End Sub

There doesn't seem to be any equally-simple way to do
this in GWindows.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks