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