Access functions from user control without events?
- by BornToCode
I have an application made with usercontrols and a function on main form that removes the previous user controls and shows the desired usercontrol centered and tweaked:
public void DisplayControl(UserControl uControl)
I find it much easier to make this function static or access this function by reference from the user control, like this:
…