Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.Net][SRC]ProgressBar Color
#3
Why not just send the msg of &H10, instead of &H400 + 16? That's like someone asking you how many hours you put in for work, and instead of saying 40, you say 10 + 10 + 10 + 10.

I would have set it up like this, maybe in a Module too:
Code:
Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer

Enum ProgressBarColor
    Green = &H1
    Red = &H2
    Yellow = &H3
End Enum

Private Shared Sub ChangeProgBarColor(ProgressBar_Name As ProgressBar, ProgressBar_Color As ProgressBarColor)
    SendMessage(ProgressBar_Name.Handle, &H410, ProgressBar_Color, 0)
End Sub
Reply


Messages In This Thread
[VB.Net][SRC]ProgressBar Color - by HF~Legend - 06-22-2012, 02:58 PM
RE: ProgressBar Color - by eiqhtworks - 06-22-2012, 04:31 PM
RE: [VB.Net][SRC]ProgressBar Color - by AceInfinity - 06-23-2012, 04:35 PM
RE: [VB.Net][SRC]ProgressBar Color - by HF~Legend - 06-23-2012, 05:54 PM
RE: [VB.Net][SRC]ProgressBar Color - by HF~Legend - 06-24-2012, 01:30 PM
RE: [VB.Net][SRC]ProgressBar Color - by kpn37z - 06-24-2012, 04:23 AM
RE: [VB.Net][SRC]ProgressBar Color - by HF~Legend - 06-25-2012, 07:15 AM
RE: [VB.Net][SRC]ProgressBar Color - by HF~Legend - 06-26-2012, 05:30 AM
RE: [VB.Net][SRC]ProgressBar Color - by Kenneth - 08-11-2012, 05:22 PM
RE: [VB.Net][SRC]ProgressBar Color - by Virtuous - 08-11-2012, 06:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [VB.NET] Animated Form Extend [SRC] Fragma 6 5,537 10-10-2013, 12:18 PM
Last Post: Saket
  [VB.Net][SRC] YouTube Bot HF~Legend 5 3,654 11-25-2012, 05:54 AM
Last Post: Ixam
  VB.NET Wrap Color BBCode Tags [Reply] AceInfinity 8 2,710 03-15-2012, 08:59 PM
Last Post: AceInfinity
  [VB.NET] Basic Reverse Connection RAT [SRC] hasam 1 3,044 02-01-2012, 03:10 PM
Last Post: AceInfinity
  VB.NET Computer Information [SRC] Fragma 35 17,063 01-07-2012, 03:56 PM
Last Post: Quantum

Forum Jump:


Users browsing this thread: 9 Guest(s)