Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disabling selection of text by mouse inside a rich text box

Status
Not open for further replies.

rumman

Programmer
Feb 10, 2002
20
0
0
US
dear expert,
i am using a richtext box in an VB application,where,i am reading a text file into the rtf control and displaying the rtf box in a form.

as of now the user can select the text inside the RTF control using the mouse.how can i disable selection thro mouse, of the text inside the RTF ?

thanks
rumman
 
Could you use something like
with richtext1
If .SelLength <> 0 then
.selstart = .selstart + .sellength
.sellength = 0
end if

in the click event?
 
this will make it so there isnt even a blinking cursor :)...

make a second text box.... a normal one.. off to the side where no one can see it... then in the RTB click put

text1.setfocus


this will stop the RTB from even getting focus in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top