Jump to content
Software FX Community

URGENT: colors in VB.NET


User (Legacy)

Recommended Posts

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

post-2107-13922394647166_thumb.jpg

Link to comment
Share on other sites

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

>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...