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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to make a text box not word wrap without using a scollbar

Status
Not open for further replies.

GavC

Programmer
May 31, 2001
8
NZ
Does anyone know how to make a text box not word wrap without using a horizontal scollbar? It must be possible because that's what the properties window does.
Thanks,
Gav.
 
It should just be a case of setting the the scrollbar property to 0 - None and the multiline to true?
 
Could you please restate your question? I'm not sure I totally understand it.

If I take a guess, then try terminating the string with VBCrLf..
text1.text="A long string" & VbCrLf & "Second string"

then all you have to do is set the textbox's ScrollBar property to Horizontal

Is this what you meant?

D.
 
I want it to NOT bump down to the next line, I want it to run off the end of the textbox so that if you want to read it you have to put the cursor in the line then arrow right, just like if you have a long name, caption, color or text etc in the properties window of the VB development environment, dig. But it's alright, I've resigned myself to having to use a horizontal scollbar, although I still wish I didn't have to as I don't have the room.
Gav.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top