Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual 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 Dev Shed Forums Sponsor:
  #1  
Old January 5th, 2004, 12:11 PM
Teenytoona Teenytoona is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 Teenytoona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question New - basic text question

Hello there,

I've been muddling through a few of the threads and can't seem to find exactly what I'm looking for (or possibly it is in here, and I just don't know the code enough to translate it).

I'm teaching myself VB, and trying to compose a rather basic program. The object of the program is to click on a label at the bottom of a screen and have a corresponding picture, title (which is also in label format) and some text (some of it as long as 5 paragraphs) appear. The trouble lies in getting the big chunk-o text to appear. (the picture and title work fine).

I'm having a bit of trouble getting the text (or memo? I've noted a distinction in the two) to appear. I've tried using a "label" and a "textbox" to no avail. Perhaps there's a format for long chunks of text that I don't know about. I've tried just copying and pasting the text, but it's obviously too long. I've made a few attempts at loading a text file into both a textbox and a label, but haven't come across either the right way to do it, or an alternate way altogether.

I can't seem to find anything about a basic text addition in any of my books (it all seems to cater to writing a portion of text, and nothing as long as what I want to add). Perhaps it is really basic and I'm overlooking it, but I thought I'd ask this forum and see what you all can figure.

Thanks

Reply With Quote
  #2  
Old January 5th, 2004, 01:04 PM
RickPiller RickPiller is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 RickPiller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Look into the Microsoft Rich Textbox Control.

project->components->microsoft Rich Textbox control.

Reply With Quote
  #3  
Old January 5th, 2004, 01:59 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,793 Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 22 h 41 m 46 sec
Reputation Power: 437
Check out what the previous user suggested that is most likly what you want, but I think (I haven't used vb in a while) a textbox control can be set to accept larger amounts of text.
__________________
Miscellaneous Software
Viper_SB
Developershed E-Support


Anyone else play chess?
Challenge me

Reply With Quote
  #4  
Old January 5th, 2004, 03:29 PM
Teenytoona Teenytoona is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 Teenytoona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm, ok so I've tried that, but can't seem to get it to resize past a certain point. It doesn't seem to want to/be able to produce a little scroll bar. (I'm anticipating the very same look/style as with this reply box).

Am I barking up the wrong tree?

Reply With Quote
  #5  
Old January 5th, 2004, 06:07 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,793 Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 22 h 41 m 46 sec
Reputation Power: 437
there is a property called (I think) multiline that should be set to true then it'll show scroll bars also I think there is another one that sets which scroll bars you want to see.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > New - basic text question


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 3 hosted by Hostway
Stay green...Green IT