I have a form that has a Ultratabcontrol with one tab, "Home". Inside that tab I have an Explorer bar with many options. When the user clicks on an option in the explorer bar. I create a new tab ("Counter"), via code and add a user control to the tab, since I can't add a form. My issue is that the "Counter" tab is not getting focus. The application stays on the "Home" tab. I have attached some code to help with my thought process. This code executes from the explorer bar option selection. Thanks for any help.
uctlCounter.Dock =
DockStyle.Fill
UltraTabControl1.Tabs(
"counter").TabPage.Controls.Add(uctlCounter)
"counter").TabPage.Focus()
e.Item.Checked =
False
Hello ,
If you would like to select a tab from UlraTabControl through the code you should use the following line of code:
ultraTabControl1.Tabs(“Tab key”).Selected = True
Let me know if you have any further questions.
Hello,
Just checking if the latest reply helped you out and if you require any further assistance on the matter.
Sincerely,DimiDeveloper Support Engineer, MCPD Infragistics, Inc.www.infragistics.com/support
To provide you more quality support we prefer to separate different issues, so I have create a support ticket for you with ID CAS-60845-9LVGSR. I will update you via the case as soon as I have information for you.
Thank you for understanding.
Yes, this resolved my issue. I am experiencing a new problem. When I jump back and forth from tab to tab, I am always setting the focus back on the first control in the tab. I would like to stay on the same control I left when switching to a different tab then coming back. Thanks.