Click here to Skip to main content
15,882,892 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Everyone,
I'm trying to create a method by which the first word in a line (or row) of text is selected in a textbox if you enter a line (or row) number in another textbox and click a button.
Can anyone help me with this ?
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jun-11 21:55pm    
So, TextBox or DevExpress.XtraRichEdit?! Don't confuse!
--SA
crmfghtr 5-Jun-11 22:30pm    
DevExpress.XtraRichEdit perferably. I know it's a third party control so that is why I asked for a Text version, to make it more accross the board.
Abhinav S 6-Jun-11 0:00am    
Did you try the winforms rich text box?
crmfghtr 6-Jun-11 0:04am    
Yes, I'm trying to convert the project to the DevExpress.XtraRichEdit Control due to a project I'm creating. I need the functionality of the DevExpress.XtraRichEdit control instead of the Standard RichText Box. Unfortunately they forgot to add some basic methods.

1 solution

You can use the SelectionStart property as demonstrated here[^] to select text in the first text box once the button click event fires.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Jun-11 21:56pm    
See OP's reply posted as a "Solution" (deleted).
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900