Determine the Form to load from Database

  • Thread starter Thread starter jayson_13
  • Start date Start date
J

jayson_13

Hi,

I have a menu screen and i want to store the menus in a table. Is
the a way that i can load the form according to the menu user has
selected?

Eg:

Menu
=================

1) Order Entry
2) Order Confirmation
3) Delivery

So when user double click on the Menu 2. I will load the Order
Confirmation Form. The name of the form i stored in table

Thank you!
 
Andy,
Thanks for your information!
This is how i do. But i have a few questions.

ObjectHandle obj = Activator.CreateComInstanceFrom(Assembly.GetExecutingAssembly().CodeBase.ToString(),typeof(Form2).ToString());
Object o = obj.Unwrap();
((Form2)o).Show();

I got the name of the form i want to load stored in a string
variable let says vFormName. How do i load this form? Can give me an
example? Thanks!
 
Back
Top