From: rick-paulos on
Anybody have a way of moving from cell to cell using the tab key in a
MSFLEXGRID in VB6?

I worked one out for the enter key but the tab key causes the focus to
jump to other objects on the form, leaving the grid.

Thanks,
rick.
From: rick-paulos on
On Jan 25, 10:46 am, "rick-pau...(a)uiowa.edu" <rick-pau...(a)uiowa.edu>
wrote:
> Anybody have a way of moving from cell to cell using the tab key in a
> MSFLEXGRID in VB6?
>
> I worked one out for the enter key but the tab key causes the focus to
> jump to other objects on the form, leaving the grid.
>
> Thanks,
> rick.


Did some more searching and found this at M$:
http://support.microsoft.com/kb/241355
"How to eEit and Tab with the MSFlexGrid Control"

This code uses a text box superimposed on top of the active cell to
allow more standard editing features. And it simulates tabing by
moving that text box from 1 cell location to the next. Pretty slick.
I set the back ground of the text box to a color so it stands out.

You can still use the mouse to choose another cell in the grid.

Cursor keys work within cells instead of moving focus from 1 cell to
another in the MSFlexGrid.