I have watched an youtube tutorial:- https://www.youtube.com/watch?v=nLfzH4xOVqo&t=197s and tried to use some lines of code which worked for him but not for me. I have been searching for the error but didn't found a working solution. Following is the code for my C# form.
There is a panel on the left side which contains buttons and each button is assigned to specific user control designed layout. You can see the video and get an idea of what I really want. All I want is when user click on any button then a certain User Control Form will open without closing the current from i.e. it will send to front of the current user control after clicking its assigned button.
ERROR IMAGE:- https://drive.google.com/open?id=17ERTUexQ79noWiwZyPGD9u8_7MNj-Cdo
ERROR MESSAGE:- An unhandled exception of type 'System.NullReferenceException' occurred in Software.exe