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

How to Add text in text box

Status
Not open for further replies.

cmaknp

Programmer
Aug 28, 2002
25
IN
Hello pls help again

i want to add this text in text box

Txtbox.height = 1245
txtbox.width=4455
txtbox.multiline=true
a="Its New One"
b="HowEver its good"
c="plss tell me add, how to use"

so how to add in text box row wise, like below, becoz i m adding so..its adding in same line, but i want to add in next row of text box, pls guide me

Its New One
HowEver its good
plss tell me add, how to use
 
txtbox = a & vbcrlf & b & vbcrlf & c Peter Meachem
peter @ accuflight.com

 
vbCrLf is an intrinsic VB constant that equates to Chr(13) & Chr(10).
You can also use vbNewLine Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
As in PeterMeachem code above.

Put this just after your line c="...
Code:
txtbox.text = a & vbcrlf & b & vbcrlf & c
Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top