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
65
Crash on _TabPageControl.Tab.Selected = true
posted

Normal 0 21 false false false MicrosoftInternetExplorer4

Hi

I have an UltraTabControl. and I will select the activeTab

 

_TabControl.ActiveTab = _xxxTabPageControl.Tab;

                   

if (_TabControl.SelectedTab != _xxxTabPageControl.Tab)

    {

        if  (_xxxTabPageControl.Tab.Selected == false)

              _xxxTabPageControl.Tab.Selected = true;//crash hier

     }

but it crash on line _xxxTabPageControl.Tab.Selected = true; ->

with NullReferenceException

Object reference not set to an instance of an object

 

Thanks,


Habib