mkashif130
New member
- Joined
- Jul 6, 2009
- Messages
- 1
- Programming Experience
- 1-3
friends i recently converted my vb6 project to vb.net.
i have a function which takes my form as argument.
following error is thrown on each control of my form which is passed as an parameter to the function which takes form as argument.
'UPGRADE_ISSUE: Control XYZ(All control) 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"'
i used this to resolve the issue
If TypeOf MyForm.ActiveControl Is System.Windows.Forms.XYZControl Then
Dim ctrl As System.Windows.Forms.xyzContol = MyForm.ActiveControl
Tab.Visible = False
end if
above code eliminates all the error, but when it check for active control it finds nothing , and jumps out of the IF Block.
could any one please tell me a correct way to do this?
i have a function which takes my form as argument.
following error is thrown on each control of my form which is passed as an parameter to the function which takes form as argument.
'UPGRADE_ISSUE: Control XYZ(All control) 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"'
i used this to resolve the issue
If TypeOf MyForm.ActiveControl Is System.Windows.Forms.XYZControl Then
Dim ctrl As System.Windows.Forms.xyzContol = MyForm.ActiveControl
Tab.Visible = False
end if
above code eliminates all the error, but when it check for active control it finds nothing , and jumps out of the IF Block.
could any one please tell me a correct way to do this?