[quoted text, click to view] "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:bvtgft$106k4j$3@ID-208219.news.uni-berlin.de...
> * "Graeme Neath" <graeme@whatever.com> scripsit:
> > 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.
>
> Please post a little bit more code (VB6 and what the VB.NET upgrade
> wizard creates).
>
> --
> Herfried K. Wagner [MVP]
> <
http://www.mvps.org/dotnet> 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