Text Box Entries

Zooker
03-17-2004, 04:56 PM
I have put several Text Box's on a Form and assigned this as Text in the Text Box's property sheet "[- Available -]". When I try to Type something in th TextBox it won't do it nothing Happens. Do I have to erase what's in the Box and Then Type or What?

trinkus79
03-17-2004, 05:31 PM
you will need to delete that text to type in the box.
You can leave the text as "[- Available -]" if you want but put an "onfocus" event in your code to automatically delete it...something like ...

Private Sub txtThisbox_OnFocus()
txtThisbox.text = ""
End Sub()

something along those lines.

Zooker
03-17-2004, 05:49 PM
Where &or when do I call This OnFocus routine?

Zooker
03-17-2004, 09:28 PM
It never clears. If I hi-lite & press delete it comes up invalid procedure & crashes. I want to be able to Type Over it and accept what I typed, and If I want 1 of the 8 text boxes to accept the text in the original text box to be able to skip over that box. Its a very simple idea. But 1 this wonderful world of event programing can't seem to accomplish.!

trinkus79
03-17-2004, 09:45 PM
I'm sorry, it's supposed to be GotFocus, not onFocus...I'm getting my programming languages mixed up again...


Private Sub Text1_GotFocus()
Text1.Text = ""
End Sub

That should clear out the textbox when it get the focus, either by clicking it or by tabing to it.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum