I was changed color od ProgressBar but animation disappear. It's my code:
What can I do to turn on animation?
Code:
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Private Sub NumericUpDown1_ValueChanged(sender As System.Object, e As System.EventArgs) Handles NumericUpDown1.ValueChanged
If NumericUpDown1.Value >= 90 Then
SendMessage(ProgessBar1.Handle, 1040, 2, 0)
End If
End Sub