Hello,
is it possible to change the currently selected tab of a tabControl via code?
Classic Client - Dynamics NAV 2009 R2
Thanks in advance
Daniel
*This post is locked for comments
Hello,
is it possible to change the currently selected tab of a tabControl via code?
Classic Client - Dynamics NAV 2009 R2
Thanks in advance
Daniel
*This post is locked for comments
Thanks for the hint using the ACTIVATE-Function of a control placed inside the tabPage.
Works very well.
The button is also setting a filter on the subform and some other things, so it really was necessary.
have you tried picking a field that exists on tab2 and using the ACTIVATE function?
The real question is that if you have to click some button anyway - why not click TAB2?
it's the same amount of clicks?
No, as per my knowledge..
So it is not possible to directly select the required tab (maybe by settings an index or something like that)?
You can send some Key Board Shortcuts via Shell commands Like
Ctrl+Page Up for Next Tab
Ctrl+Page Down for Previous tab
Well I want to show for example 'Tab 2' when I press the button
In C# it would be done by following code:
tabControl1.SelectedTab = tabControl1.TabPages[NumberOfTabControl];
Can you be more clear with an example please?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156