C1DockingTab SelectedIndex

Posted by: shahjugnu on 13 January 2023, 4:46 pm EST

  • Posted 13 January 2023, 4:46 pm EST

    Hello,

    I am using VS 2022 C# .NET Framework 4.8. I am getting an error saying **System.NullReferenceException: ‘Object reference not set to an instance of an object.’

    tabSetup was null.**

    while setting Index OR checking Selected Index in switch{}

    tabSetup.SelectedIndex=1;
                    switch (tabSetup.SelectedIndex){}

    Please help. Thanks and Regards

    Note: I am not getting this Exception using VB.Net

  • Posted 16 January 2023, 1:05 am EST

    Hi,

    We tested the code you shared using the latest version of C1DockingTab (4.8.20223.588) but could not see the issue on our end. Kindly refer to the attached sample project showing the behavior on our end. Could you please provide a sample project or update the attached project to show your implementation and the issue you are facing, so we can investigate further and assist you better?

    Attachment: SelectedIndex.DockingTab.zip

    Thanks, and Kind Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels