|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Jul 2003
Location: Sheffield, UK
Posts: 292
|
VB6 textbox keydown help
on keydown of the enter key i want the app to put some text in my textbox. I have absolutely no idea how to do this so all help is much appreciated.
Thanks in advance to anyone who posts
|
|
|
|
|
|
#2 |
|
Member (9 bit)
Join Date: Jul 2003
Location: Sheffield, UK
Posts: 292
|
ok, no replies yet so maybe you dont get what i mean.
I am making a html code generator. I am putting some text in a multiline textbox and when i click the enter button on my keyboard i want ' ' to appear after the text i have written there. Darkside |
|
|
|
|
|
#3 |
|
Professional gadfly
|
If you use the KeyDown event, it would look something like this:
Code:
Private Sub txtInput_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 ' 13 is vbKeyReturn code
txtInput.Text = txtInput.Text & "'"
End If
End Sub
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|