set the focus on a control

hi to everyone… i was wondering how tu set the focus on a certain control in a form thanks in advance

CurrForm.NameOfYourControl.ACTIVATE might do it for your purposes. The form also as a Property ActiveControlOnOpen if you want to set the cursor to a specific control on opening the form. Or, of course NextControl on controls to jump between controls

thanks