Calling A form by its name which is saved as text in a table .
-
Hi I am building a windows Form application where the Forms names are stored in a data table as text , The name of the Form selected to run is retrieved from the data table , so it will be a string type , how can I call the related form knowing its name as a string only ? Any Ideas ?
-
Hi I am building a windows Form application where the Forms names are stored in a data table as text , The name of the Form selected to run is retrieved from the data table , so it will be a string type , how can I call the related form knowing its name as a string only ? Any Ideas ?
Via Reflection. Search the articles here for "plug-ins" and "add-ons" and "dynamic loading" and such.
-
Hi I am building a windows Form application where the Forms names are stored in a data table as text , The name of the Form selected to run is retrieved from the data table , so it will be a string type , how can I call the related form knowing its name as a string only ? Any Ideas ?
use reflection,you can find the guideline about using this from msdn or google,it's quite easy..