I currently have a windows form, this contains various user controls that can be shown in a click of a button, only showing the user control which has been selected, normally this works fine with the code
Checkworkcontrol1.Show()
Gradescontrol1.Hide()
Submissioncontrol1.Hide()
The code above is used in my windows form to display the specific user control, but i have one exception that i'm trying to implement, inside one of the user control i have a button that will show the another user control in the windows form but when i try to implement the same method it does nothing.
Mainpage.Submissioncontrol1.Show()
Mainpage.Gradescontrol1.Hide()
Mainpage.Checkworkcontrol1.Hide()
"Mainpage" being the windows form