Home
Help
Search
Login
Register
AdvancedHMI Software
»
General Category
»
Support Questions
»
Assign new color to the property LightColor1
« previous
next »
Print
Pages: [
1
]
Author
Topic: Assign new color to the property LightColor1 (Read 930 times)
automatizzando
Newbie
Posts: 15
Assign new color to the property LightColor1
«
on:
November 11, 2016, 10:42:18 AM »
How do I assign a new color to a property of an object by code?
I wrote this code, but it creates me error.
Code:
[Select]
PilotLight3Color2.LightColor1 = "Red"
Thanks for your help
Logged
Godra
Hero Member
Posts: 1447
Re: Assign new color to the property LightColor1
«
Reply #1 on:
November 11, 2016, 10:56:24 AM »
It should be:
PilotLight3Color2.LightColor1 = AdvancedHMI.Controls.PilotLight3Color.LightColors.Red
Visual Studio should show available options as soon as you type equal sign ("=").
Logged
automatizzando
Newbie
Posts: 15
Re: Assign new color to the property LightColor1
«
Reply #2 on:
November 11, 2016, 02:39:56 PM »
Grazie Mille
Logged
Print
Pages: [
1
]
« previous
next »
AdvancedHMI Software
»
General Category
»
Support Questions
»
Assign new color to the property LightColor1