is it possible to change the currently selected tab of a tabControl in Dynamics NAV 2009 R2 via code?
Classic Client - Dynamics NAV 2009 R2
When I press the button 'Show second Tab', the tabPage should switch from the currently selected ('Allgemein') to 'Tab2'
I couldn't find anything about switching tabs in a tabControl in Navision
Thanks in advance
You're right - there is no simple way to programmatically change the selected tab. What you could do, however, is use code to activate the first control on the desired tab. To do this, the OnPush of your "Show second Tab" button should contain:
CURRFORM.TheNameOfTheFirstControlOnTheSecondTab.ACTIVATE;