NI Home > Community > NI Discussion Forums

Measurement Studio for VB6

Reply
Member
bartinoregon
Posts: 15
0 Kudos

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

Member
Josh_L1
Posts: 103
0 Kudos

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

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
Member
bartinoregon
Posts: 15
0 Kudos

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

Josh,

 

Thanks!

 

Bart