Teen Programmers Unite  
 

 

Return to forum top

VB newb help

Posted by swatzer [send private reply] at January 26, 2002, 02:51:03 PM

hi im doing a small text adventure,im doing a college course and am newish.
so.. ive put my location text into a listbox
is there someway to have this auto scroll and also is there a way to show individual lines of text in different colours?

Posted by vladimir_l [send private reply] at January 26, 2002, 03:47:55 PM

England , I am from there too , where do you live ( county )

Posted by taubz [send private reply] at January 26, 2002, 03:49:39 PM

> is there someway to have this auto scroll

I don't know what you mean... But, there's no "auto"-anything. You need to program it to do what you want it to do.

> is there a way to show individual lines of text in different colours

The short answer is no.

The long answer is, if you read through the help on listboxes, look through the Properties window, and experiment in code, you'll very quickly go through everything you can do with a listbox (not much) - and controling the color of each line is not one of those things. (ie, This is the type of question that you can answer on your own much quicker than by asking here.)

- taubz

Posted by vladimir_l [send private reply] at January 26, 2002, 04:36:08 PM

General answer " in programming EVERYTHING is possible " !

Posted by swatzer [send private reply] at January 27, 2002, 04:01:50 AM

im from bradford west yorkshire :)

auto scroll : one vb game i play WWW.Fantasyquest.net
has everything inc locations etc in either a txtbox or listbox and you dont need to manualy pull down the scroll bar to see any changes,ive askd mi teacher he says he will ask another teacher lol,and that was weeks ago lol

Posted by vladimir_l [send private reply] at January 27, 2002, 06:25:57 AM

I am from East Yorkshire ( Beverley near Hull )

Posted by taubz [send private reply] at January 27, 2002, 09:42:00 PM

> General answer " in programming EVERYTHING is possible " !

Shut up, vladmir. That post, like many of your others, wasn't at all helpful.

- taubz

Posted by vladimir_l [send private reply] at January 29, 2002, 12:45:33 PM

Suppose you are right that makes programming look pointless , it has boundaries , just more prooof of how mauch the natual world around us is superior.

Posted by Psion [send private reply] at January 29, 2002, 02:27:22 PM

That wasn't helpful, either.

Posted by swatzer [send private reply] at January 29, 2002, 04:03:16 PM

luaghs hystericaly at Taubz post... has anyone tried finding any help from msdn libs and on the whole(meaning every time) been successful. let me remind you ,if we are asking for help then we have probably checkd and rechecked probably all available resources, including my foolish teacher,sigh
If were not supposed to put questions here that someone may help with then what is the purpose of this conference.

P.S. STILL, can anyone answer my post above.

Posted by CodeRed [send private reply] at January 30, 2002, 11:05:00 AM

> General answer " in programming EVERYTHING is possible " !

Not with VB, if you want to do this do not use VB.

Posted by vladimir_l [send private reply] at January 30, 2002, 11:42:57 AM

VB is is limited , but thats how the world is , it has its qalities PS what does autoscroll mean , could you just delete the top line of your picture , and keep delting it , and it would "sort of" autoscroll down.

Sorry .. I hope that was helpful...

Posted by swatzer [send private reply] at January 30, 2002, 12:31:27 PM

ok theres like a text window with scroll bar,location added when move also beasts in loc,attacks etc,but u dont have to pull down scroll bar when new loc added,it scrolls on its own!
thats the sort of thing im looking for

Posted by vladimir_l [send private reply] at January 30, 2002, 01:24:21 PM

IN VB ?

Posted by taubz [send private reply] at January 30, 2002, 03:48:44 PM

Set the selstart to the last position if you want to make sure the cursor is at the end.

But, I did answer your question the first time. There is no auto scrolling feature.

- taubz

Posted by swatzer [send private reply] at January 31, 2002, 01:02:50 PM

:)

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.