NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
bartinoregon
Posts: 11
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: 98
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: 11
0 Kudos

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

Josh,

 

Thanks!

 

Bart

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page