I am doing a project in C # and I have a table in SQL that builds a dynamic tree menu and one of the fields has the name of the form that should be opened when clicking.
Now, in order not to make a fixed query and lose the dynamic effect of the menu setting, I want to use a call that can be unique and that gives it the name of the form I need and calls and urges it.
In the menu, when I choose billing, call the form
I should write
frmFacturacion fact = new frmFacturacion(); fact.Show();
frmFacturacion should be variable depending on each menu option you choose.
I hope you understand me and there is a possibility to do it.