VB.NET 2013, Win 7
I would like to know how to load a Form when I have the Name of the Form as String.
Eventually I may have 200+ forms in my application (I know, it is crazy, but they all are different) and I will have the names of the Forms in a table.
I can do a long Select Case, but calling Form by name would be so much shorter.
I did try this: Calling a Form with a string in VB.NET and this: Calling a separate Windows Form using its name as a String but the returned object was Nothing :-(
I did try this: Call Form with string name but... 'no cigar' either :-(
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
I would like to know how to load a Form when I have the Name of the Form as String.
Eventually I may have 200+ forms in my application (I know, it is crazy, but they all are different) and I will have the names of the Forms in a table.
I can do a long Select Case, but calling Form by name would be so much shorter.
I did try this: Calling a Form with a string in VB.NET and this: Calling a separate Windows Form using its name as a String but the returned object was Nothing :-(
I did try this: Call Form with string name but... 'no cigar' either :-(
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.