Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
Ultratabcontrol not getting focus
posted

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.

 

 

 

 

 

 

 

 

 

Dim uctlCounter As New ctlCounter

 

 

 

Me.UltraTabControl1.Tabs.Add("counter", "Counter")

uctlCounter.Dock =

 

DockStyle.Fill

UltraTabControl1.Tabs(

 

"counter").TabPage.Controls.Add(uctlCounter)

UltraTabControl1.Tabs(

 

"counter").TabPage.Focus()

e.Item.Checked =

 

False