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

How can you print multiple lines of text in a message box?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am currently working on a Visual Basic project, and we are using a message box that contains a long string of text, which we would like separated into separate parts. Trouble is, I cannot find any info on how to do this.... it only prints the text on one line of the message box, making it large.

Any help appreciated!!!

-=Cerberon=-
 
MsgBox "This is line one" & vbcrlf & "this is line two" & vbcrlf & "this is line three", ...

vbcrlf means Caridge Return + Line Feed
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
You can also substitute vbNewLine for vbCrLf
David Paulson


 
Thanks guys.......that was quick :) We're actually working on the project now (at 11:15 p.m, no less) so I appreciate it!!!!!!!

-=Cerberon=-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top