From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,613 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,603 Views)

Josh,

 

Thanks!

 

Bart

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