Here ya go
here are a couple functions to help you.
Public Sub AddFontStyle(ByVal rtb As IMRichTextBox.IMRichTextBox, ByVal style As System.Drawing.FontStyle)
' if the selection length is > 0, work char by char.
' This is necessary because the selected text may have different
' styles...
i have tryed everything. searched everywhere./ so i came to the conclusion there must be an rtf code that makes the image unselectable. if anyone can help me please.
i am trying to insert a picture in a richtextbox and make it uneditable. i can already insert the image without copy an paste...
here ya go
myrichtextbox.select(myrichtextbox.text.indexof("username"),Len("username"))
myrichtextbox.selectionfont = New Font(myrichtextbox.selectionfont, fontstyle.bold)
myrichtextbox.select(myrichtextbox.textlength,0)
that will make the username bold you can automate it too jsut by...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.