User (Legacy) Posted March 20, 2003 Report Share Posted March 20, 2003 Could someone help me with this: I am using ChartFX Client Server (COM) with VB.NET. Online support article "Q1381088. How To Set Colors In ChartFX ClientServer When Using C#" gives the following example for setting colors in C# uint white = 16777215; axchart.OpenDataEx(ChartfxLib.CfxCod.COD_COLORS,1,0); axchart.Series[0].Color = white; axchart.CloseData(ChartfxLib.CfxCod.COD_COLORS); I have not been able to make this work in VB.NET. Anybody could offer me any help with this? Thanks Quote Link to comment Share on other sites More sharing options...
Software FX Posted March 24, 2003 Report Share Posted March 24, 2003 Hi, The following should work: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim white As System.UInt32 white = Convert.ToUInt32(16777215) With AxChart .OpenDataEx(ChartfxLib.CfxCod.COD_COLORS, 2, 0) .Series(0).Color = white .CloseData(ChartfxLib.CfxCod.COD_COLORS) End With End Sub SFX Support GF "Joshua K" <john@cytanet.com.cy> wrote in message news:t$KcfKs7CHA.3448@webserver1.softwarefx.com... > Could someone help me with this: > > I am using ChartFX Client Server (COM) with VB.NET. > > Online support article "Q1381088. How To Set Colors In ChartFX ClientServer > When Using C#" > gives the following example for setting colors in C# > > uint white = 16777215; > axchart.OpenDataEx(ChartfxLib.CfxCod.COD_COLORS,1,0); > axchart.Series[0].Color = white; > axchart.CloseData(ChartfxLib.CfxCod.COD_COLORS); > > I have not been able to make this work in VB.NET. Anybody could offer me any > help with this? > > Thanks > > > Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.