Button Style (Pressed & Not Pressed)
-
i would love to change windows button to keep pressed when i press it and back to the normal state when pressed again. does windows button support dat? :sigh:
-
i would love to change windows button to keep pressed when i press it and back to the normal state when pressed again. does windows button support dat? :sigh:
You could use the FlatStyle options, Unpressed is Standard, Pressed I believe if represented as Flat.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Button1.FlatStyle = FlatStyle.Flat Then
Button1.FlatStyle = FlatStyle.Standard
'Change The Appearance Back To UnPressed
Else
Button1.FlatStyle = FlatStyle.Flat
'Go And Do Whatever And Look Like The Button Is Pressed
End If
End SubHope this helps :)
-
i would love to change windows button to keep pressed when i press it and back to the normal state when pressed again. does windows button support dat? :sigh:
-
i would love to change windows button to keep pressed when i press it and back to the normal state when pressed again. does windows button support dat? :sigh:
If you're using WPF you can make use of the Toggle Button.