Herfried
Wed Oct 19 07:18:04 CDT 2005
"Mervin Williams" <mwilliams@innovasolutions.net> schrieb:
>I have a form with a datagrid and two buttons on it. Upon opening the
>form, focus goes immediately to the datagrid. How do I set focus onto one
>of the buttons. I've tried to use "btnSave.Focus()", but to no avail.
In addition to the other reply: If you do not want to change the tab order
of the controls, consider calling the button's 'Select' method instead of
its 'Focus' method.
--
M S Herfried K. Wagner
M V P <URL:
http://dotnet.mvps.org/>
V B <URL:
http://classicvb.org/petition/>