Greetings,
I have a tab control and for when a tab page has focus I would like to set focus to the first field on the page.
This has to be done manually (I assume, as cannot see a suitable property on tab control or page).
I could choose the suitable event and then hardcode the value of the first control on the form and set focus i.e. txtbox1.focus()
The shortcoming being if the fields change order I would have to change the code.
Is the only other way to loop around and find the control with the lowest tabindex?
Any ideas (simpler the better as a newbie) to allow focus to be set the first control on a tab page would be appreciated.
Thanks
Rob
I have a tab control and for when a tab page has focus I would like to set focus to the first field on the page.
This has to be done manually (I assume, as cannot see a suitable property on tab control or page).
I could choose the suitable event and then hardcode the value of the first control on the form and set focus i.e. txtbox1.focus()
The shortcoming being if the fields change order I would have to change the code.
Is the only other way to loop around and find the control with the lowest tabindex?
Any ideas (simpler the better as a newbie) to allow focus to be set the first control on a tab page would be appreciated.
Thanks
Rob