Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Textboxes


Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2003, 11:04 AM
wright100 wright100 is offline
Centurion
 
Join Date: Jun 2003
Posts: 185
Default Textboxes


Quick question. When adding text to a text box how do i make the added text go down a line?
Reply With Quote
  #2  
Old 06-19-2003, 11:08 AM
VBDude VBDude is offline
Centurion
 
Join Date: Jun 2001
Location: New York
Posts: 114
Default

make sure multiline is enabled and then say Text1.text = Text1.text & VBNewline
__________________
nothing's really wrong... it's just not quite right
Reply With Quote
  #3  
Old 06-19-2003, 11:10 AM
futura's Avatar
futura futura is offline
Centurion
 
Join Date: Jan 2003
Posts: 143
Default

Do you mean scrollbar?
Set the textbox property:
scrollbar = vertical
multiline = true
Reply With Quote
  #4  
Old 06-19-2003, 11:13 AM
Twan Twan is offline
Contributor
 
Join Date: Apr 2003
Posts: 627
Default

vbCrLf will generate a new line in a textbox.
Reply With Quote
  #5  
Old 06-19-2003, 11:21 AM
futura's Avatar
futura futura is offline
Centurion
 
Join Date: Jan 2003
Posts: 143
Default

Sorry for not initialize your question properly.

I'd tried out the solution as vbdude and skateboarder said but my text just goes from left to right...
What event actually for the textbox?
Reply With Quote
  #6  
Old 06-19-2003, 12:22 PM
Twan Twan is offline
Contributor
 
Join Date: Apr 2003
Posts: 627
Default

So you mean you want something like this?

Text1.Text = "THIS IS A STRING."

Now, that's all on one line. So you're saying you want Text1.Text to be like this?

Text1.Text = "THIS IS
A STRING."

If you want it like that do this -

Code:
Text1.Text = "THIS IS" & vbCrLf & "A STRING."

If that's what you mean then use that. Is that what you meant?
Reply With Quote
  #7  
Old 06-19-2003, 12:39 PM
HiTmAN's Avatar
HiTmAN HiTmAN is offline
Contributor
 
Join Date: Mar 2003
Location: The FSB
Posts: 570
Default

In addition, make sure the MultiLine property of the textbox is set to True
__________________
MSDN is your friend.

3L Designs
Reply With Quote
  #8  
Old 06-19-2003, 01:00 PM
wright100 wright100 is offline
Centurion
 
Join Date: Jun 2003
Posts: 185
Default

Quote:
Originally Posted by futura
Sorry for not initialize your question properly.

I'd tried out the solution as vbdude and skateboarder said but my text just goes from left to right...
What event actually for the textbox?




I've got it figured out. I used vbcrlf and changed the multiline to true and that did it. Thanks anyway.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attaching textboxes to an accesss database Doubs Database and Reporting 10 01-29-2003 09:30 AM
how to do a runtime resizing of 2 textboxes in a frame joblake General 2 11-01-2002 11:55 AM
Excel: Finding text in textboxes JRW160 Word, PowerPoint, Outlook, and Other Office Products 7 06-19-2002 01:53 PM
Textboxes will not re-populate Roger1 General 2 02-01-2002 08:06 AM
Opening 2 parts of 1 textfile to 2 textboxes vb4me:) General 10 01-10-2002 04:05 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->