I am the new 2010 navigation control as my main form navigation. It works really well. I have provided the functionality for the user to open and close various backend databases. If the user 'closes' all the backend databases I want to disable all of the tabs that show data and default to the form that prompts the user to choose a backend.
I can enable/disable navigation tabs by setting me.navClientView.Enabled=F
alse, for example.
How do I simulate the user clicking on the tab I want to show?
(Using the old tab control, I could have coded something like:
where 2 was the tab I wanted to switch to.
But the new navigation control doesn't work that way.
Each tab button has a name in the new control, and I want to switch to navSettings. So, something like:
but there is no code - it is now all done with the Navigation Target Name property.