E
excelleinc.com
Hi,
I want to have a sub that takes string as argument and then opens a form
that has that string as a class name.
Say:
Class users
Inherits System.Windows.Forms.Form
'display form content
End Class
Sub functions(str As String)
Dim frm As New str 'this is want I'm trying to accomplish - obviously
doesn't work this way
frm.ShowDialog()
End Sub
And then call it as Sub("users") If I want to accomplish next:
Dim frm As New users
frm.ShowDialog()
Obviously, what I'm trying to do is much more complicated but if I would
know how to accomplish example above I'd be able to do what I need.
Thanks,
Vlado
http://www.excelleinc.com
I want to have a sub that takes string as argument and then opens a form
that has that string as a class name.
Say:
Class users
Inherits System.Windows.Forms.Form
'display form content
End Class
Sub functions(str As String)
Dim frm As New str 'this is want I'm trying to accomplish - obviously
doesn't work this way
frm.ShowDialog()
End Sub
And then call it as Sub("users") If I want to accomplish next:
Dim frm As New users
frm.ShowDialog()
Obviously, what I'm trying to do is much more complicated but if I would
know how to accomplish example above I'd be able to do what I need.
Thanks,
Vlado
http://www.excelleinc.com