Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you get and set the trace colors of a measurement studio graph control?

Hi,

 

Am using a "graph" control (cwui.ocx) inside a vb.net program. I can set the individual trace colors in the property pages but I would like to both read and write these properties from the program. Any hints on syntax?

 

Thanks,

Bartj

0 Kudos
Message 1 of 3
(5,597 Views)

Hi Bartj,

 

I think the property you are looking for is LineColor. Please refer to the code below.

 

  WaveformGraph1.Plots(0).LineColor = Color.Aquamarine

 

I hope this helps.

 

Regards,

 

Josh L.

 

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(5,587 Views)

Josh,

 

Thanks!

 

Bart

0 Kudos
Message 3 of 3
(5,578 Views)