G
Guest
In my VB6 code I have added properties to several forms to change the form's
behaviour depending from where it is called and often modified these
properties in a generic function like this example:
Private Sub InsertForm(frmInsert As Form, nLabelSpace As Integer)
frmInsert.SpecialLabelSpace = nLabelSpace
End Sub
When I convert this to .NET I get this code:
Private Sub InsertForm(ByRef frmInsert As System.Windows.Forms.Form, ByRef
nLabelSpace As Short)
frmInsert.SpecialLabelSpace = nLabelSpace
End Sub
This creates an error because my added property is not a member of
System.Windows.Forms.Form.
How do I best fix this in .NET?
Thanks in advance!
Gungmas
behaviour depending from where it is called and often modified these
properties in a generic function like this example:
Private Sub InsertForm(frmInsert As Form, nLabelSpace As Integer)
frmInsert.SpecialLabelSpace = nLabelSpace
End Sub
When I convert this to .NET I get this code:
Private Sub InsertForm(ByRef frmInsert As System.Windows.Forms.Form, ByRef
nLabelSpace As Short)
frmInsert.SpecialLabelSpace = nLabelSpace
End Sub
This creates an error because my added property is not a member of
System.Windows.Forms.Form.
How do I best fix this in .NET?
Thanks in advance!
Gungmas