|
-
Sep 20th, 2000, 05:55 PM
#1
Thread Starter
New Member
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
-
Sep 20th, 2000, 06:04 PM
#2
Addicted Member
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
212 will lead you to the truth
-
Sep 20th, 2000, 06:08 PM
#3
_______
<?>
'better to do it after the fact
in your event code after the user enters whatever
text1 = "C:\" & text1
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 20th, 2000, 06:10 PM
#4
_______
<?>
Forget the mid stuff, to set the cursor at the 3rd position
text1.selstart = 3
However you can't lock the C:\ as untouchable
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
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
|