Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: setfocus


Message #1 by "Hum C H" <humch@h...> on Mon, 12 Mar 2001 05:11:33 -0000
If there are any other controls in the form, i.e. buttons or the like just set the tabindex property of
one of this controls to a number lower to the tabindex property of the text boxes so it gets the focus when the form is first loaded
and not the text controls. The way vb works is that the focus is given to the lowest numbered control (in its tabindex property)
which is enabled and visible.

>From: "Hum C H" 
>Reply-To: "professional vb" 
>To: "professional vb" 
>Subject: [pro_vb] setfocus 
>Date: Mon, 12 Mar 2001 05:11:33 -0000 
> 
>Hi 
> 
>1)Is there a way (runtime or design time) to de-focus a control 
>array of 
>textboxes? When a form with the contro; array of textboxes is 
>loaded, it 
>must not have any focus set on either of the textboxes. 
> 
>2)Is it a default that the focus is always on the first textbox? Is 
>there a 
>way to change this during design time? 
> 
>C H 

  Return to Index