yogesh12
Posts: 23
Joined: Mon Sep 01, 2008 6:52 am

How to set focus to the control on a Customized Dialog?

Hi,

If an invalid entry is made to a control that is present on a Customized Dialog box then we prompt that the entry is invalid and we clear the edit control data. After the message the focus is on the next button and we want that after the message the focus must be present on the edit control. Has anyone come across a solution for the stated issue.

Thanks in advance for you time and help.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to set focus to the control on a Customized Dialog?

Hi,

This happens because the "Next" button is the default control and the first in the tab order of the dialog. In an Enterprise project you can change the tab order by using the Dialogs page (the "Tab Order" button on the toolbar). For your custom dialog you can try setting the edit box control as the first in the list, but I'm not sure if it will solve the problem.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”