I have seen may post about how to load user controls Dynamically from different DLLs based on the Control Name as a string.
My situation is very similar to this. Except for one issue. I don't have any DLLs to load my controls from.
I am trying to dynamically load my user controls that are currently in my .EXE File.
My situation is as follows:
I load up a tree view with some nodes as my main menu for my application. These nodes are loaded from a data table. I place a string in the Tag field of the tree view nodes. This string is the name of the user control that I want to load into a panel next to my tree view.
Is there a way to load the control from within the my code much like the
Assembly.Load(<DLLName>).createInstace(<DLLName>.<ControlName>) without having it in a separate DLL.