[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Infragistics UltraTabControl - Problem changing the selected tab.

Posted on 2010-11-30
Medium Priority
Last Modified: 2012-05-10
I'm using an Infragistics UltraTabControl version (Infragistics2.Win.UltraWinTabControl.v8.3.dll)

In my code depending on a certain data criteria I try to change the tab being displayed, with the following line of code.
Me.utcTemplatesAndWorkings.SelectedTab = Me.utcTemplatesAndWorkings.Tabs("tabBudgetSummary")

Nothing happens the tab does not change?

Any ideas.
Question by:dfincham28
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 2
LVL 32

Expert Comment

ID: 34240642
Me.utcTemplatesAndWorkings.Tabs("tabBudgetSummary").Selected = True


Author Comment

ID: 34245763
Hi Erick37

I tried that same result.
LVL 32

Expert Comment

ID: 34248340
I tried the code by adding a tab control on a form with 10 tabs.
In a button click event I call:
Me.UltraTabControl1.Tabs(9).Selected = True
and the tab scrolls into view and becomes active.

Where in your code do you make the tab active (which event)?
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 34255469
Hi I tried the calling my code from a button click event and it worked.
The scenario that does not work is if I call the SelectedTab or Selected = True from the validated event on a combo box.

The selectedtab code is definately being hit i put a break point on it. The breakpoint only get hit once so it is not in some sort of crazy loop either.

LVL 83

Assisted Solution

CodeCruiser earned 200 total points
ID: 34255821
Try calling the Application.DoEvents or Refresh method of the tabcontrol.

Author Comment

ID: 34257246
Tried Application.DoEvents and refresh still no joy.

Author Comment

ID: 34257308
I added a brand new tab control to the same region on the form with nothing on it just two tabs.
Same result.

Strangely I'm still able to disable tabs.
LVL 32

Assisted Solution

Erick37 earned 1800 total points
ID: 34257572
Here is a workaround.  Not pretty, but it works.
1) disable the active tab
2) select a different tab
3) re-enable the previous active tab

        Dim activetab As Integer = UltraTabControl1.ActiveTab.Index
        UltraTabControl1.Tabs(activetab).Enabled = False
        UltraTabControl1.Tabs(2).Selected = True
        UltraTabControl1.Tabs(activetab).Enabled = True

Accepted Solution

dfincham28 earned 0 total points
ID: 34268479
Thanks For the suggestions.

A colleague of mine solved the problem using a delegate.
When you want to change the tab you invoke the delegate and in there you change the tab.

Don't ask me why this works but it does.
LVL 83

Expert Comment

ID: 34269013
You never mentioned you are using threads or timer or backgroundworker etc!

Author Closing Comment

ID: 34299404
If you want to make the tabs invisble you should also use a delegate if you have a similar problem.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question