Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm trying to find a component to use for a certain type of text box 1

Status
Not open for further replies.

soas

Technical User
Joined
Aug 3, 2001
Messages
49
Location
US
Hey, I was wondering if there was a type of text box that displays text that you can highlight and copy, but theres no cursor or focus on it. So it would be more like a label with highlight and copyable text. I mean I see it all over windows programs, but I dont know how to or if I can use something similar in Visual basic. I have messed around with the text boxes and rich edit boxes, and I just cant get the affect I need. I use visual basic 5 on windows 98, If anyone can give me any input on this, I would really appreciate it. Thanks
 
Have you tried the Locked property of the textbox? You will need a cursor to highlight desired text. Also, set the TabStop property to False if you don't want it to get focus without clicking on it. Tim

Remember the KISS principle:
Keep It Simple, Stupid!
 
I have already tried that, thanks anyways, it doesnt do what I need. Theres plenty of things that have it.

Like when you left click a file and look at the properties window, there is text that resembles VB lables in their looks, but you can highlight and copy the text on them also
there is no blinking cursor on them. Thats what I am looking for, not too much of a big deal though, I would like to know if i can do it, but I can find ways around it i suppose. Thanks for trying though.
 
Actually, I take that back, the properties window does have a blinkink cursor, I just never noticed it before. hehe woops, well I was looking for something that doesnt exist apparently :), really though, thanks for your time hehe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top