71
Support Questions / Re: Changing the Look of a Button
« Last post by Archie on February 28, 2024, 02:37:34 PM »- In Solution Explorer expand down AdvancedHMIControls
- Exapand down the Controls folder
- Right Click BasicButton.vb and select View Code
- Go down to about line 405, just below #Region "Events"
- Add this code
- Exapand down the Controls folder
- Right Click BasicButton.vb and select View Code
- Go down to about line 405, just below #Region "Events"
- Add this code
Code: [Select]
Protected Overrides Sub OnEnabledChanged(e As EventArgs)
MyBase.OnEnabledChanged(e)
If Not Me.Enabled Then
Me.BackColor = Color.Black
End If
End Sub