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
1105
How to make tabheader unfocusable?
posted

Hi,

 

I would like that when a user clicks s tab header or the tabheader gets focused that the first control in the tabpage gets the  focus. 

Is there an event which I can subscribe to?

Can a set the tabheader to focusable false?

 

regards

Stefan

 

Parents
  • 9298
    posted

    Stefan,

    You could disable the tab by setting the Enabled property of the tab to false.  Would that do what you want?

    You can handle the SelectedTabChanged event and then depending on what tab is selected you can set the focus to the control you want.

    Something like the following:

     

     

     

     

     

    private void ultraTabControl1_SelectedTabChanged(object sender, Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventArgs

    e)

    {

     

     

    if

    (ultraTabControl1.SelectedTab.Index == 0)

    {

    ultraGrid2.Focus();

    }

     

     

    else

     

     

    if

    (ultraTabControl1.SelectedTab.Index == 1)

    {

    ultraGrid1.Focus();

    }

    }

    Let me know if that helps

    Michael S.

Reply Children
No Data