|
-
Aug 23rd, 2000, 04:21 AM
#1
Thread Starter
Lively Member
I am doing an input program that inputs to a TextBox array. I want enter to act as tab and I use SendKeys "{TAB}" for that but I can not get rid of then Pling that occures.
Any suggestions ?
Yesterday, all my troubles seemed so far away...
Help, I need somebody, Help...
Now MCSD and still locking for intresting job in the south parts of Stockholm, Sweden.
-
Aug 23rd, 2000, 04:33 AM
#2
Try setting the MultiLine property to True. This will get rid of the ping.
-
Aug 23rd, 2000, 04:40 AM
#3
Guru
If I understood you correctly you want the Enter key to act as a Tab (as in, adding a tab to the text).
First set the MultiLine to True, then instead of making it multiple lines, make it support tabs, like this:
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
KeyAscii = 0
Text1.SelText = vbTab
End If
End Sub
-
Aug 23rd, 2000, 04:49 AM
#4
Hi Yon! I don't think AKA wanted to insert a tab when he pressed enter. But change focus to the next TextBox. He should continue to use SendKeys.
-
Aug 23rd, 2000, 10:05 AM
#5
Thread Starter
Lively Member
Thanks, I got the change focus working. I also learned about SelText that i will explore tomorrow.
Thanks, AKA
Yesterday, all my troubles seemed so far away...
Help, I need somebody, Help...
Now MCSD and still locking for intresting job in the south parts of Stockholm, Sweden.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|