User (Legacy) Posted January 14, 2004 Report Share Posted January 14, 2004 I am in the process of converting a VB6 app to VB.NET and have run into a small problem with ChartFx. The code has converted with remarkable ease, with the exception that a couple of lines of code (which work fine in VB6) cause the app to blow up: Dim nIndex as Short ChartFX1.Commands.AddCommand(306) nIndex = ChartFX1.Commands.AddPicture(picTable.Image) <<< blows up here Are there any known issues with AddPicture in .NET? picTable is of type 'System.Windows.Forms.PictureBox' TIA Graeme Neath Link to comment Share on other sites More sharing options...
Software FX Posted January 14, 2004 Report Share Posted January 14, 2004 I'm assuming you are still using Chart FX 5.x (COM). Right ? If so, my guess would be that the Image can not be converted to a COM (OLE) image. I will check how this works in interop. You must know that we have a .NET version released for quite a while (since before the release of the .NET framework), this is the recommended (and fully supported) way of using Chart FX from a .NET application, since this upgrade is available mo major testing have been done of using Chart FX COM from a .NET environment. "Graeme Neath" <graeme@whatever.com> wrote in message news:Hyjj68o2DHA.3512@WEBSERVER1... > I am in the process of converting a VB6 app to VB.NET and have run into a > small problem with ChartFx. > > The code has converted with remarkable ease, with the exception that a > couple of lines of code (which work fine in VB6) cause the app to blow up: > > > Dim nIndex as Short > ChartFX1.Commands.AddCommand(306) > nIndex = ChartFX1.Commands.AddPicture(picTable.Image) <<< blows up here > > > Are there any known issues with AddPicture in .NET? > > picTable is of type 'System.Windows.Forms.PictureBox' > > TIA > > Graeme Neath > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.