-
Here's my problem.
I've got a couple of textboxes where you can go through by the TAB stops.
Now I want to selct the text in the textbox, so it get's blue, and onde you type the original text dissappears and the new text appears.
At the moment you have to delete the original text first ( by a couple of backspaces, pretty annoying)
Anyone of you got a solution ?
Kleinvaag
-
Hi,
Try this for each text box you have:
Code:
Private Sub Text1_GotFocus()
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub
Hope this helps
Shaun
-
In the gotfocus event set
txtbox.selstart=0
txtbox.sellength=len(txtbox.text)
where txtbox is your textbox
now when you tab onit it will be blue and typing will overwrite the contents.
Regards
Chris
-
Hi Chrisa_uk adn S@NSIS,
It works :-)
Thx a lot.
Kleinvaag