-
Hey all
I have a textbox and im trying to make it like a DOS menu
but i have a lil prompt thingy like <C:\> sorta thing and i want to make that uneditable but i want what they type in to be editable...how do u do that? and how do u put the cursor after the prompt?
Twisted-D
-
Use Mid$ function
You caught me at work without my books or coding. Search the string for the first character after the <C:/> thingy, which by the way is called a root directory. You need to know that if you are to go far in VB : ). Store every variable after that until you get to the end of the string, using the Mid$ function. I don't have the actual coding but this is the logic. If you like I can send you the coding tomorrow.
The Computer Dope Man
Doc Sheinder
-
<?>
'better to do it after the fact
in your event code after the user enters whatever
text1 = "C:\" & text1
-
<?>
Forget the mid stuff, to set the cursor at the 3rd position
text1.selstart = 3
However you can't lock the C:\ as untouchable