how can i make that a textbox dont show a number or a letter
when someone tries to tipp 6 there will nothing appear can someone show me that ?
well in that case you will have to make that when vbKey6 (or something like that) is pressed text1.text = ""
or something similar. Sorry but I can't show you the code because VB6.0 is not installed.
thanks anywayi thing you mean using if text1.text = "6" then
text1.text = "" end if
i thing that should works but i thought there must be an easier way
That's the best way to do it..Code:If text1.text = "6" then text1.text = "" End If
Last edited by Skel; 02-23-2008 at 03:11 PM.
No i did not mean that, i mean you should monitor all buttons pressed and if 6 is pressed while you have a focus on text1 then text1.text=""
hope you understood better.
Well I don't have VB 6.0 installed but it's either something like text1.focus or use the procedure text1_onfocus() maybe something like that....
i will try it i hope i do it right
how about ... if the field is called text1...
When typing in text 1, if you type in "A", it blanks the fieldCode:private sub text1_KeyPress (KeyAscii as integer) if (KeyAscii = 65) then text1 = "" end sub
so you could do something like ..
Code:dim mypwd as string private sub text1_KeyPress (KeyAscii as integer) mypwd = mypwd + chr(keyascii) text1 = "" end sub
Last edited by TcM; 02-27-2008 at 04:51 AM. Reason: Code Tags
I did not try it, but it seems like it would work.
Nice +rep given.
But please another time use code tags instead of color.
Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks