Hi,
I have a subroutine (InitNotes) that has a form as a parameter by reference. This subroutine calls another sub that fills by couple of comboboxes on that form. This InitNotes is being called by 2 forms. When I upgraded the project from vb6 to vb.net it gives me the following error "Control cboNoteType could not be resolved because it was within the generic namespace Form." and the same for cboNotePriority. What should be done to resolve this
Here is my vb6 code
Public Sub InitNotes(frm As Form)
NoteCboFiller frm.cboNoteType, frm.cboNotePriority
InitNotesGrid frm
End Sub
Here is the .net code after Upgrade
Public
Sub InitNotes(ByRef frm As System.Windows.Forms.Form) 'UPGRADE_ISSUE: Control cboNotePriority could not be resolved because it was within the generic namespace Form. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm keyword="084D22AD-ECB1-400F-B4C7-418ECEC5E36E"' 'UPGRADE_ISSUE: Control cboNoteType could not be resolved because it was within the generic namespace Form. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm keyword="084D22AD-ECB1-400F-B4C7-418ECEC5E36E"'NoteCboFiller(frm.cboNoteType, frm.cboNotePriority)
InitNotesGrid(frm)
End Sub
Thanks,
SS