Rich TextBox

  • 10 years ago

    Hi guys,

    I am trying to format more than one selection in a Rich TextBox control but can't find a way of doing it.

    I have a string variable which I assign to the text property of the control. When I use .selstart and . seltext to format a selection as italics it works fine. But when I do the same thing for another selection, the original selection returns to normal format.

    Can you make multiple selections in this control or is there another way to format different parts of a Rich TextBox control?

    Really appreciate amy help you can give.


  • 10 years ago


    Can you further clearify your problem or even post a sample code.


    I hope I can help you.

  • 10 years ago

    Hope this can help...

    try to use the function Replace().

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves” - Alan Kay