Results 1 to 3 of 3

Thread: VB Code syntax highlight control and/or library *resolved*

  1. #1

    Thread Starter
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329

    VB Code syntax highlight control and/or library *resolved*

    is there a library and/or control, that will colour and properly format vb code thats in a richtextbox?
    Last edited by Colonel Klink; Mar 27th, 2003 at 05:46 PM.

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    try planetsourcecode

  3. #3
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694
    i have done the same for html and here is my advice.

    do not colorize all richtextbox text this is stupid.
    just colorize the VISIBLE richtextbox this means you have to send a em_getfirstvisible message to the richtextbox to get the number of the first visible line and calculate the last visible line (add some lines).
    then execute the coloring part only for this range. it will be very quick !

    also use lockwindowupdate so that the richtextbox does not flicker

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