Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

VB.NET - How to set progress bar state (Windows Vista and 7 only)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,816
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 20, 2010

SendMessage declaration: 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
Code:
Normal:
SendMessage(ProgressBar1.handle, 1040, 1, 0)
Paused:
SendMessage(ProgressBar1.handle, 1040, 3, 0)
Error:
SendMessage(ProgressBar1.handle, 1040, 2, 0)
Please rate and comment :)

P.S. DO NOT USE PAUSED OR ERROR STATE PROGRESS BAR AS A SUPER COLOR FOR PROGRESS BAR, else you will notice many glitches in your super color progress bar :)

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (naumovartem1)

  • Fuck you!

  • @Daygemente no ty

  • Not work

  • @SuperFANTASY19 It does work, only for vista and win7

  • THANKS!

  • @redpois0n np :)

see all

All Comments (12)

Sign In or Sign Up now to post a comment!
  • Will it throw an exception if the code runs on an XP machine?

  • Wohoo, I have been finded this looooooong timeee... >:-)

  • Works fine for me, exept the progrssbar becomes very laggy.

  • thanks thanks thanks!!

  • thanks man nice code :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more