Rich TextBox

  • 13 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.

    Pete

  • 13 years ago

    Hi,

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

     

    I hope I can help you.

  • 13 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).

Contribute

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.

“Walking on water and developing software from a specification are easy if both are frozen.” - Edward V Berard