Re: Setting focus to a control within a usercontrol by WineNCheese
WineNCheese
Wed May 10 19:06:04 CDT 2006
One easy way is to set the TabIndex of the grid to 0 (and any other controls
to subsequent #s).
"MrNetDeveloper" <MrNetDeveloper@discussions.microsoft.com> wrote in message
news:F71CE54C-FA5E-421B-AE3E-9D45ADA41727@microsoft.com...
>I have a user control that contains a grid. I want to set focus to the grid
> when the user control receives focus.
>
> I have tried calling grd.focus() for the gotfocus of the user control, but
> that doesnt work.
>
> Any ideas?
>
> Thanks