"web1110" <(E-Mail Removed)> wrote in message news:JLCdnUqXXtz3vavfRVn-(E-Mail Removed)...
> When I make a control visible that has several subordinate controls in it,
> how can I direct the focuss to the first subcontrol.
Locate the first subcontrol on your containingControl,
Control subcontrol = containingControl.Controls[ 0];
Next, provided subcontrol is Visible and Enabled (it returns
true when you check subcontrol.CanFocus) you call its
Focus( ) method,
bool gotFocus = subcontrol.Focus( );
Derek Harmon
|