>That worked! I set it up so that each textbox in the grid has code in the KeyPress() event that looks to see if the key passed to the event was equal to EnterKey and took action as necessary.
>
>Thanks for the lead, Hilmar.
>
>Jim White
Unfortunately, it is difficult to automate objects in a grid through classes. The way the Visual Extend framework handles this, for instance, is to call a method in each TextBox.KeyPress() (or other desired event). The code in the Column Headers and TextBoxes is supposed to be maintained through special builders.
Of course, even if you have to place the code to call a method into each TextBox, you still have the advantage of having one centralized place (the corresponding method) where you maintain your code.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)