VB6 to VB.NET Migrate problems
-
Hi, I got a problem when my application migrated from VB6 to VB.NET. The problem is "Couldn't resolve default property of object adresse." Here is the sample code: Friend ReadOnly Property adr() As rsd Get 'UPGRADE_WARNING: Couldn't resolve default property of object adr. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"' Return mA End Get End Property Here rsd is structure type. Could anyone of you please guide me how to solve this problem. Thanks in advance,
AR Reddy
-
Hi, I got a problem when my application migrated from VB6 to VB.NET. The problem is "Couldn't resolve default property of object adresse." Here is the sample code: Friend ReadOnly Property adr() As rsd Get 'UPGRADE_WARNING: Couldn't resolve default property of object adr. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"' Return mA End Get End Property Here rsd is structure type. Could anyone of you please guide me how to solve this problem. Thanks in advance,
AR Reddy
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Hi, I got a problem when my application migrated from VB6 to VB.NET. The problem is "Couldn't resolve default property of object adresse." Here is the sample code: Friend ReadOnly Property adr() As rsd Get 'UPGRADE_WARNING: Couldn't resolve default property of object adr. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"' Return mA End Get End Property Here rsd is structure type. Could anyone of you please guide me how to solve this problem. Thanks in advance,
AR Reddy
Rewrite the line to specify the property that should be returned. Using "default properties" is considered bad practice anyway, but, sadly, VB6 users rely on it way too much.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008