I am getting confused with trying to select an area of a mshflexgrid and copy it to the clipboard.

I am clicking the top left cell of the required area, then <shift> + bottom right cell, then clicking a button containing the code:

Clipboard.Clear
Clipboard.SetText grd.Clip

However this only copies the first selected box's text to the clipboard.


Strangely, if I put the text 'msgbox(grd.col)' in the grid mousedown event I get a messagebox of the col number but also when I now do shift+(last cell) the area highlights and clicking the button now copies the area to the clipboard!

What am I doing wrong, I don't want to have to have the messagebox come up every time!

Thanks

I have found that selecting the cells and moving the curser off the grid leaves the cells selected so that solves my problem in a way