>I've coded a class where a single grid serves as a lookup grid for multiple txtboxes. To do its job right the grid has to recognize when the "client" txtbox changes.
>So when client txtbox gets focus it would pass the reference to itself (THIS) to the grid.
>Now, everything works OK unless I use txtbox inside another grid. The problem is that all txtboxes in the same column have same THIS reference, no matter which row I'm in.
>So the question is: Is there any way to get unique reference for any object/control, plain or griddish?
>Thanks.
There is no way to differentiate between objects that I know of but you can pass additional information to define a particular textbox. In addition to passing THIS, pass the ActiveRow and ActiveColumn properties of the Grid to the method.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao