|
-
Dec 8th, 1999, 01:34 AM
#1
Thread Starter
New Member
Hi all,
I've to put a routine in a textbox.Keypress
that overwrite the string in the textbox...
Thanks
-
Dec 8th, 1999, 02:00 AM
#2
Junior Member
-
Dec 8th, 1999, 03:34 AM
#3
Thread Starter
New Member
I'm sorry for my bad english. I try to re-post the question:
Like the old applications for DOS where to replace a string the user press the INS key and then rewrite the word or date or whatever, I need to write a routine that when I write something in a (pre-filled) TextBox it overwrites what is written....
It has to do something like Deleting the char at the right of the cursor and replace with the pressed one... Thanks
-
Dec 8th, 1999, 05:21 AM
#4
Here's one way:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Text1.SelLength = 0 Then
Text1.SelLength = 1
End If
End Sub
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
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
|