I have a variable of type UserControl private at the top of a class.
Depending of some condition, one of my two UserControl is displayed. The problem is that I wanted to SET the global private variable of type UserControl to the visible UserControl to have a reference on it for later use. I always got Error Type Mismatch.
Private mo_SelectedControl As UserControl
'...
'...Some where in a Sub:
set SelectedControl = myUserControl
I have try with myUserControl.object, and it doesn't work neither. Any idea?