Change Button on click in MES

So, we had someone make us a customization in the End Activity in MES.

The customization changes the checkbox for “Complete” to a button, the button label changes when clicked.

This is setup in a script on the screen.

I can edit it to change the words that show up on the button with no issue, but I have been tasked with changing the color of the button now when clicked, red when not complete, green when complete.

I have tried making changes to the script, but I can’t seem to find the right way to change the colors, I suspect I just don’t have the correct label or something like that, although the “Custom Code Compiled Successfully”, so the code is “right” it’s just not the “right code” if that makes sense? The back color is what I am trying to change from grey/transparent to an actual color.

This is the portion for when the form loads.

    chkComp.Style = Infragistics.Win.EditCheckStyle.Button
    chkComp.Appearance.TextHAlign = Infragistics.Win.HAlign.Center
    chkComp.Text = "Click Here to Complete Operation"
    chkComp.BackColor = System.Drawing.Color.Red

This is for the part when the value is changed.

   Select Case chkComp.Checked
        Case True
            chkComp.Text = "Operation Complete"
            chkComp.BackColor = System.Drawing.Color.Green
        Case False
            chkComp.Text = "Click Here to Complete Operation"
            chkComp.BackColor = System.Drawing.Color.Red
    End Select

I am not familiar with Vantage, but in E10, there is a property called UseAppStyling which should be set to False. Otherwise the control uses the styling from the loaded theme.