Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

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

Report
Coloured strings? Posted by NewProg2 on 24 Dec 2004 at 1:57 PM
Hi; how can i do it so that if i assign strings to a textbox (one after another, not one replacing the other); the sections of the text that correspond to particular strings are differnt colours?

e.g
text1 = text1 & str1(blue)
text1 = text1 & str2(red)etc

any help would be appreciated
Report
Re: Coloured strings? Posted by Bulgarian_VB on 24 Dec 2004 at 5:44 PM
This message was edited by Bulgarian_VB at 2004-12-24 17:45:22

: Hi; how can i do it so that if i assign strings to a textbox (one after another, not one replacing the other); the sections of the text that correspond to particular strings are differnt colours?
:
: e.g
: text1 = text1 & str1(blue)
: text1 = text1 & str2(red)etc
:
: any help would be appreciated
:
Use the RichEdit control (standard, just go to Project -> Components).

Hope I helped,
Nikolay Semov



Report
Re: Coloured strings? Posted by NewProg2 on 28 Dec 2004 at 10:33 AM
: This message was edited by Bulgarian_VB at 2004-12-24 17:45:22

: : Hi; how can i do it so that if i assign strings to a textbox (one after another, not one replacing the other); the sections of the text that correspond to particular strings are differnt colours?
: :
: : e.g
: : text1 = text1 & str1(blue)
: : text1 = text1 & str2(red)etc
: :
: : any help would be appreciated
: :
: Use the RichEdit control (standard, just go to Project -> Components).
:
: Hope I helped,
: Nikolay Semov
:
:
:
:
Can somebody help with the actual coding plz? I never used the RichTextBox control before, and i cant find anything on the Web or in my books! Tahnk you for your help



 

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.