Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 6th, 2005, 02:53 PM
picNick picNick is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Michigan
Posts: 2 picNick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 9 sec
Reputation Power: 0
Send a message via AIM to picNick Send a message via MSN to picNick
Question VB text boxes

Hello,

I am trying to make a program that I can make tabs with,
a tab is a form of music for guitar. My problem is that I cannot
figure out how to make the text in a text box stop and go to
a new line. For example, this thread stops at a certain point
at the right. That is what I want for my text box, but I
don't know how to do that. Please help me or else I will be
forced to pick up my monitor and toss it out the window.

ahh help!

-picNick

Reply With Quote
  #2  
Old July 23rd, 2005, 07:51 AM
Gary O'Connor Gary O'Connor is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Cookamidgera, a little village in the centre of New South Wales, Australia. Sydney is my states capital city.
Posts: 5 Gary O'Connor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 2 m
Reputation Power: 0
When forming the string for your textbox, just add a Return/Linefeed at the end.

Do it like this......

dim a as string

a="This is a test string" & VBCrLf
a=a + "This is on the next line!" & VBCrLf
a=a + "And this is another line down"
Text1.Text=a

Of course, for this to work you must have the Textbox 'MultiLine' value set to true.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > VB text boxes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT