In this post you can learn How to change progressbar color in vb.net we have placed the coding below use code in your project.

Public Class Form1 Declare Function snd _ Lib "user32" Alias "SendMessageA" _ (ByVal hwnd As Integer, _ ByVal wMsg As Integer, ByVal _ wParam As Integer, ByVal _ lParam As Integer) As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click snd(ProgressBar1.Handle, 1040, 2, 0) Timer1.Start() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Value = ProgressBar1.Value + 1 If ProgressBar1.Value >= 100 Then Timer1.Enabled = False End If End Sub
 
Top