G
Guest
If I want to open a form and pass a parameter, I would usually say:
private frm as new frmMyForm
frm.CustNumber = 123
However, I've created a generic procedure to open the form based on the class name:
frm = DirectCast(Activator.CreateInstance(Type.GetType("MyApp." & strClassName)), Form)
How do I set a custom property of the form using the above syntax?
Thanks,
Denise
private frm as new frmMyForm
frm.CustNumber = 123
However, I've created a generic procedure to open the form based on the class name:
frm = DirectCast(Activator.CreateInstance(Type.GetType("MyApp." & strClassName)), Form)
How do I set a custom property of the form using the above syntax?
Thanks,
Denise