Change rich text box color vb2005  
Author Message
Shady9399





PostPosted: Visual Basic Express Edition, Change rich text box color vb2005 Top

hi

How can i changed selected line background color on rich text box

Thanks




Visual Studio Express Editions10  
 
 
DMan1





PostPosted: Visual Basic Express Edition, Change rich text box color vb2005 Top

Me.RichTextBox1.SelectionBackColor = Color.Blue



 
 
Brendan Grant





PostPosted: Visual Basic Express Edition, Change rich text box color vb2005 Top

Have you tried the setting the SelectionBackColor property of the RichTextBox

 
 
Shady9399





PostPosted: Visual Basic Express Edition, Change rich text box color vb2005 Top

no, but this working.

thank you for help



 
 
Tall Dude





PostPosted: Visual Basic Express Edition, Change rich text box color vb2005 Top

Shady,

Looks like you are building a RTB editor.

You might want to download my RTB editor (not perfect, but lots

of bells and whistles to look at.)

It's code shows how to do most of the questions you have posted.

http://users.adelphia.net/~gcumbia/printrtfnow.zip

(See, I even have a typo in the project name I gave it.

should have been 'PrintRTBnow'. But I left the name alone

because changing the top level folder name in a project

sometimes messes things up.)