Posted on 1998-04-24
In VB5, on an MDIChild form with a DBGrid on it, I want to be able to "zoom" to a name in the list displayed in the grid as the user types in a name. The trouble is that even though I wrote a KeyPressed event handler for the grid, it is never accessed by the program. I tried writing the event handler for the form (setting its Key Preview property to True, of course), but to no avail. This REALLY confuses me! Why won't the KeyPressed event trigger when the KeyUp/KeyDown events do?!?!
FWIW- the DBGrid is the one that distributes with VB5Pro, I'm not doing anything fancy thus far.
Please help, this has brought me to a stand-still!