VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

RichTextBox Highlighting using API (fast & simple) change text background color

buggy  (2 Submissions)   VB function enhancement   Visual Basic 5.0   Beginner   Wed 3rd February 2021

this is just a quick hack to show how highlighting text in a richtextbox can be achieved using api (fast and easy). i hope it's new and interesting and relieving to some of you ("ahhh, just so easy!"). this came to me after i saw "Bobo RTF tricks" https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=40401&lngWId=1 and it seemed by far too complicated to me. as i'm into delphi right now, i know about the CHARFORMAT2 capabilities and that it is by far easier to achieve highlighting if you know how. searched the web for it but found no easy solution (one in chinese or so but partly wrong). vbaccelerator has a big rtf control from which i finally ripped the sources. finally found more on VB & rtf with CHARFORMAT2 on VBC: https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=38434&lngWId=1 (but no screenshot, not really sphisticated, take vbaccelerator code to see what's possible). sorry, no more time, have a nice day, buggy!

Rate RichTextBox Highlighting using API (fast & simple) change text background color (8(8 Vote))

Download RichTextBox Highlighting using API (fast & simple) change text background color

RichTextBox Highlighting using API (fast & simple) change text background color Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters