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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlight Text In Textbox

Status
Not open for further replies.

0CODE

Programmer
Feb 8, 2004
63
CA
for some reason it wont highlight the selected text on some cases:

txb.SelectionStart = 0
txb.SelectionLength = txb.TextLength

this is what i use, and if for ex a msgbox is displayed right before this it will highlight the text, but if not it wont. is there any way to highlight text, im sure there is.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top