Results 1 to 7 of 7

Thread: Color text in s textbox

  1. #1

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hi everybody!

    I want to program a program that can show some colored VB code!
    So I think I got to use the Richtext control!
    I don't like using ocx, but if there is no other way...okay!
    But does anyone of you have a codesnippet of a function that colors VB code? Or will i have to do this all on my own? It would really be a pain!

    Thanks
    If there were similar threads like this before, sorry but I couldn't find one.

    Sanity is a full time job

    Puh das war harter Stoff!

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    You mean like you would type in the code and it would color it? Look at the post called "Find", and then you just find things like "If" and "End" etc...

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    http://forums.vb-world.net/showthrea...threadid=32197

    [Edited by HeSaidJoe on 10-02-2000 at 07:48 PM]
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    Hmmm

    Not sure...You could always have it write to an html page and then display it

  5. #5

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181

    Smile

    Thanks for the help!

    I'm still looking for answers guys, because I think someone should have done this before!

    If not, is there a list in the MSDN where I can find all the Keywords that are colored.

    Thanks
    Sanity is a full time job

    Puh das war harter Stoff!

  6. #6
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    changed my post..look at the source
    http://forums.vb-world.net/showthrea...threadid=32197
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  7. #7

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Thanks guys!

    When I wrote the first answer I just read the first answer! You are really fast!

    I found many functions, that search Richtextboxes and color the search string!
    Sanity is a full time job

    Puh das war harter Stoff!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width