I asked a still unanswered question that will shed more light on this question.
Why can't I do this...
_wizardDialog.UIRoot.Controls.Clear()
_wizardDialog.UIRoot.Controls.Add(TryCast(wizardUserControl, wizardUserControl.GetType))
Why does using GetType in this way fail. The argument for try cast are object and type. Since wizardUserControl.GetType returns a type how come this is not legal. Visual Studio is complaining wizardUserControl.GetType is not defined.
The bottom line is how can I get WizardUserControl to return the type that is being passed in to my method. The method that is being called into here should not have to have the type hard-coded...that's the point of all of this OOP stuff...right? So how do you do this.
Please read the other question and answer there if you can...that is the problem I am tyring to solve.
I am learning the oop stuff.
Seth