Customization- Change EpiButton color

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.

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

@NateS , I tried same thing but getting same result. Unable to change the background color.

Did you check for this property?