Jan 11 2017, 01:38 AM
I am working on a form that contains more than 1 page in a tab. When I enter a particular field in the main form , i want a specific page to be shown.
I have used set focus to the particular page. But the current control loses the focus.
I want the current control to get the focus back.
Is there any way to show the required page , without using setfocus?
Thanks in advance.
Jan 11 2017, 04:08 AM
Is the current control on the same page as the page that you are setting focus to?
If not - then I would suspect not. Could you provide a little more background as to what you're trying to achieve?
Jan 11 2017, 07:48 AM
The current control is in the parent form.
I have a control named "Process" in parentForm
In the same form , I have tab control containing different subforms in 3 pages.
When i enter the control " Process" I want to show the relevant page ( Page name "Process List" ) in the tab control, while the focus remains on "Process"
Jan 11 2017, 10:44 AM
Hmm. You *could* try setting focus to the page and then switch it back to the Progress control. Does that work as intended?
Jan 11 2017, 12:27 PM
If switch back to that control , the on enter event fires and it again sets focus to the tab. It goes into a loop.
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here