Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > VB.NET General Discussion

VB.NET General Discussion VB.NET general discussion area

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2009, 9:10 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Jul 2009
Age: 23
Posts: 1
Reputation: 0
mkashif130 is on a distinguished programming path ahead
Default migrating to vb.NET from vb6

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 8:22 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.