V
Volker Jobst
Hi,
I have several forms in my application which are all inherited from
System.Windows.Forms.Form. Now I want to write one(!) function which gets
three parameters:
Sub OpenForm(frm as Class, userid As Integer, permission As Integer)
If CheckPermission(userid , permission) Then
Dim temp As frm = New frm
frm.ShowDialog()
Else
MsgBox("Access denied!!")
End if
End Sub
Call:
OpenForm(FormClass, 10, 20)
But I don't know how to pass the class into the sub. I tried Type, Control,
Class, Object and Form but nothing worked.
Thanks a lot.
volker jobst
I have several forms in my application which are all inherited from
System.Windows.Forms.Form. Now I want to write one(!) function which gets
three parameters:
Sub OpenForm(frm as Class, userid As Integer, permission As Integer)
If CheckPermission(userid , permission) Then
Dim temp As frm = New frm
frm.ShowDialog()
Else
MsgBox("Access denied!!")
End if
End Sub
Call:
OpenForm(FormClass, 10, 20)
But I don't know how to pass the class into the sub. I tried Type, Control,
Class, Object and Form but nothing worked.
Thanks a lot.
volker jobst