SYMPTOMS
When you use the Upgrade Wizard to upgrade a project from
Microsoft Visual Basic 6.0 to Microsoft Visual Basic 2005 or to Microsoft Visual Basic .NET, the
DataSource property of the ActiveX controls contained in the upgraded
project may not migrate correctly. If the fully qualified name is used to
access the
DataSource property, the
DefInstance property is not added during migration.
For example, the
following line of code appears in your Visual Basic 6.0 project.
Set Form1.DataGrid1.DataSource = Form1.Adodc1
After the upgrade to Visual Studio 2005 or to Visual Studio .NET, this line appears as follows.
'UPGRADE_ISSUE: VBControlExtender property DataGrid1.DataSource is not supported at runtime.
Click for more: ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup2066"
Set Form1.DataGrid1.DataSource = Form1.DefInstance.Adodc1
The "Form1.DataGrid1" element is underlined by the blue, wiggly line
that is used for error alerts.
Note If you replace "DataGrid1" with any Visual Basic 6.0 ActiveX
control that supports the
DataSource property, this should still throw the same error.