- RichTextBox- Selecting partial lines

  • Thread starter Thread starter Annpluscal
  • Start date Start date
A

Annpluscal

Anyone know how to select an arbituary rectangular chunk of a RichTextBox.

I mean I don't want to sellect entire lines but rather be able to grab, for
example, one column of a table.

I wouldn't mind it it took a lot of coding. For exampe, copy the text into
another box and delete evertthing outside the marquee. There has to be a better
way.

Ant helpful suggestions would be appreciated.
 
This should be able to help you:

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q930q

Note I have never tried that, but that looks just like what you are trying
to do.

If the #index doesn't work, search for "5.68 How can I use a mouse to
select cell ranges in my datagrid?"

Josh Moody
Developer Division Sustained Engineering Team

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
 
Thanks, that relates to part of the problem.
But the hard part is:
Say I know the area I want to capture.
How do I get the text from it.

If I could select the chunk and do Copy that would do it.

Thanks
 
Back
Top