views:

776

answers:

3

Hi,

Has anyone extended the .NET RichBextBox control to be able to select text by "block selection"? If so, care to share your code?

Thanks.

--Lenard

A: 

As far as I know, the only way to do that is with the SendMessage from the API, using EM_CHARFROMPOS.

You would have to do some rectangle border search/tracking and experiment to find the efficient solution, but that would be the basics.

kek444
A: 

Hi Lenard,

I found your post while searching for the same capability. Have you found a solution?

Thanks, Bob

Bob
No I didn't. I decided to hold off for now on that capability. I may look at what kek444 suggested but I don't have the time (or desire) to work it out myself. That said, if I do find something in the future, I will share it here.
Lenard
A: 

Hi Lenard and Bob, If you find any solution for the Block selction feature in rich textbox, please share.. Thanks in advance

Brad