i have aproblem to translet this vb6 code to vb.net


the code:


Public Sub ViewStatusBarProc(CurrentForm As Form)

CurrentForm.mnuViewStatusBar.Checked = 1

End Sub



the problem:
the function doesn't know that mnuViewStatusBar is member in the CurrentForm.

in vb6 there is no problem to do it