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

Text Box Question

Status
Not open for further replies.

RSH

Technical User
Jun 15, 2000
55
US
I am using several text boxes in a program. One of them is a column of numbers which are totaled with the total showing on the bottom. The difficulty is trying to draw a line under the column of numbers and over the total. The text is the double spaced New Times Roman. The underline key draws the line ok but leaves space under the column. The VB Line object refuses to show on a text box. Standard
line statements are a nono in VB.
73 RSH
 
What-ho,

You could always just place another text box under your text box control, butted up against its base. There'll be distinct seperation between the two controls, then all you'll have to do is redirect your total from the original textbox to the new one.

Alternatively, look into ListBox controls - they're dead clever and can do loads of stuff, they may be able to do what you want...or try an MSFlexGrid control? Textbox controls are fairly simple, really, and aren't very flexible.



These ideas brought to you using "my brain" (tm)

Paul
 
Thanks Paul:
I Like the idea of using a seperate text box,even though I
was trying to keep the count down. It would certainly solve
the line problem if a line were inserted between the two.
On second thought though I doubt if text will go very close to the bottom of a text box. Will try however.
73 RSH
 
You could also get rid of the text boxes and replace them with ListView control. This control will allow you to add lines in between the entires of it. You can also change the color of each element in the list.
 
Thanks Steve:
However This programmer is not familiar with the above. Perhaps I have missed somthing or perhaps it is not included
in this version of VB. Will check further.
73 RSH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top