Notifications
Announcements
No record found.
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
Can you be more clear with an example please?
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];
You can send some Key Board Shortcuts via Shell commands Like
Ctrl+Page Up for Next Tab
Ctrl+Page Down for Previous tab
So it is not possible to directly select the required tab (maybe by settings an index or something like that)?
No, as per my knowledge..
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?
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.