Hari_Dutt
(Hari Dutt)
1
I am using below mentioned code to change the EpiButton background color runtime. But unfortunately it is not working
btnGetRates.BackColor = System.Drawing.Color.Orange;
Anyone can suggest how to change the EpiButton color on runtime.
Thanks in advance.
NateS
(Nate Schoonover)
2
I use this code to change button colors:
public class Script
{
public EpiButton myButton;
...
private void MainController_Load(object sender, EventArgs args)
{
// Add Event Handler Code
myButton = (Ice.Lib.Framework.EpiButton)csm.GetNativeControlReference("92c2276c-74c7-4dcb-ac08-966910515cdd");
myButton.BackColor = System.Drawing.Color.Orange;
To make this work, you have to change the property of the button: UseOsThemes = false.
1 Like
Hari_Dutt
(Hari Dutt)
3
@NateS , I tried same thing but getting same result. Unable to change the background color.
NateS
(Nate Schoonover)
4
Did you check for this property?