General programming

Moderators: None (Apply to moderate this forum)
Number of threads: 1642
Number of posts: 2791

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
scroll bars for picture/label box Posted by chunz84 on 29 Nov 2002 at 11:13 PM
i'm trying to read text from a file and output the text to a picture or label box, but both doesn't have scroll bars option. So the i can't view all of the text being output in the picture box/label box.
anyone can help???

i'm trying to do linefeed in textbox but doesn't work
for example, txtbox.text = "This is" & chr(10) & "something"
anyone can help???

Report
Re: scroll bars for picture/label box Posted by Zantos on 10 Dec 2002 at 8:14 AM
If you're trying to input text to a picture or label box and want scroll bars, you're out of luck. Just input the text file into a textbox and set the ScrollBar value to what you would like it to be in the properties window.

As for the linefeed, use Chr(10) & Chr(13) for the line break.
You can also use VB's special character for this, vbCrLf.

..:: Zantos::..
Report
Re: scroll bars for picture/label box Posted by chunz84 on 11 Dec 2002 at 7:13 AM
: If you're trying to input text to a picture or label box and want scroll bars, you're out of luck. Just input the text file into a textbox and set the ScrollBar value to what you would like it to be in the properties window.
:
: As for the linefeed, use Chr(10) & Chr(13) for the line break.
: You can also use VB's special character for this, vbCrLf.
:
: ..:: Zantos::..
:


i got the vbCrLf already.... Chr(10) & Chr(13) doesn't work every time for me though.....thanz anyway....
i was juz wondering bout adding scrollbars for label box or picture box.....anyway....thanz for the advice....



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.