Groups | Blog | Home
all groups > vb.net upgrade > february 2004 >

vb.net upgrade : referencing an activeX control


Graeme Neath
2/5/2004 11:20:06 AM
I my VB6 application that I am converting to VB.NET I was passing a
reference to an ActiveX control to another object in order to embed one in
the other. I.e.

Set Node.ActiveXObject = advFiltersGrid.object

The VB.NET upgrader did it's best and changed this to:

eventArgs.node.ActiveXObject = advFiltersGrid.object

which does not compile.


What do I need to do to get a reference to my 'advFiltersGrid' object in
VB.NET?

TIA
Graeme






Graeme Neath
2/5/2004 2:00:20 PM

[quoted text, click to view]


How much more code would you like to see? Here is the line that I am having
the problem with and a few lines before and after it:

Node.Tabs.TabStyle = pvxTabsBottom
Node.ViewerType = pvxActiveXPane
Node.ViewerType2 = pvxNone
Set Node.ActiveXObject = advFiltersGrid.object
valuesTopCheck.Visible = False
applyAdvFilterBtn.Visible = True
addAdvFilterBtn.Visible = True

this is converted into:

eventArgs.node.Tabs.TabStyle =
PVExplorerLib.pvxTabStyle.pvxTabsBottom
eventArgs.node.ViewerType = PVExplorerLib.pvxPane.pvxActiveXPane
eventArgs.node.ViewerType2 = PVExplorerLib.pvxPane.pvxNone
'UPGRADE_WARNING: Couldn't resolve default property of object
advFiltersGrid.Object. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"'
eventArgs.node.ActiveXObject = advFiltersGrid.Object
valuesTopCheck.Visible = False
applyAdvFilterBtn.Visible = True
addAdvFilterBtn.Visible = True

The 'node' that is being referred to is part of Infragistic's DataExplorer
component. The 'advFiltersGrid' is DataDynamic's SharpGrid.

I am trying to embed the Sharpgrid object into the DataExplorer object. This
works very well in VB6, but I just can't figure out how to get it to work in
VB.NET


hirf-spam-me-here NO[at]SPAM gmx.at
2/5/2004 2:25:13 PM
* "Graeme Neath" <graeme@whatever.com> scripsit:
[quoted text, click to view]

Please post a little bit more code (VB6 and what the VB.NET upgrade
wizard creates).

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button