Change the skin for ProgressBar! HELP!

Posts 1–15 of 15 · Page 1 of 1
Change the skin for ProgressBar! HELP!
I installed Ghost Theme for my appliaction that i made, and everything is ok except GhostProgressBar, commands GhostProgressBar is recognized, but when i put dot GhostProgressBar.Increments(1) then i got error about Increments command.
Increments commands is not recognized for GhostProgressBar.
What should I do?
Same happens when i created custom MyProgressBar from "Add User Control..." command Increments didnt been recognized.
Only default green ProgressBar is working
Please i need help as soon as possible. Thanks!
Maybe it just has a different name, if not you have to create it on your own or increase a value in a loop
Quote Originally Posted by Biesi View Post
Maybe it just has a different name
I get that error too and checked the name but still give me the error.
That what prevented me from making load form -.-
I found solution. I inseret booth progerssbars. the default one and the ghostprogressbar!
and i just use this code:

ProgressBar1.Increment(1)
GhostProgressbar1.Value = ProgressBar1.Value
Quote Originally Posted by zoki358 View Post
I found solution. I inseret booth progerssbars. the default one and the ghostprogressbar!
and i just use this code:

ProgressBar1.Increment(1)
GhostProgressbar1.Value = ProgressBar1.Value
That's a stupid method.
Quote Originally Posted by wut12345 View Post
That's a stupid method.
But it will work.
Quote Originally Posted by -[Exorcist]- View Post

But it will work.
Code:
Textbox1.Text = "dick"
Textbox2.Text = Textbox1.Text
Textbox3.Text = Textbox2.Text
Textbox4.Text = Textbox3.Text
Textbox5.Text = Textbox4.Text
Textbox6.Text = Textbox5.Text
Textbox7.Text = Textbox6.Text
Textbox8.Text = Textbox7.Text
hur hur hur.
Did you get it working ?
Quote Originally Posted by -[Exorcist]- View Post

But it will work.
Ya. It works!
There is just no function called "Increment" in the Progressbar's class
Quote Originally Posted by Biesi View Post
There is just no function called "Increment" in the Progressbar's class
I decompiled someone's load form and saw the same codes and he still using them.
PS : He use Net Seal ProgressBar
Quote Originally Posted by Nexero View Post
He use Net Seal ProgressBar
This is a whole other class then. The GhostProgressBar class just doesn't have the Increment function. Add it yourself if you want it
You can Do This :
Code:
Try
GhostProgressBar1.value = GhostProgressBar1.value + 1

Catch ex as exception

End Try
You can Put this in a Timer
and The Reason I've Put it in Try is When The ProgressBar value equal 100 and then the codes works to 100 + 1 = 101 Then There will be an error right here.


I Also Know a Way Changing The ProgressBar Colour to {Red, Yellow, Green(default)}

Here is The Code :

Code:
Option Explicit On

Imports System . I O 
' Without Spaces ^^
Imports System.Runtime.InteropServices
Imports Microsoft.Win32.Registry
Imports System.Drawing


Public Class Form1
    <DllImport("User32.Dll")> _
    Public Shared Function SendMessage(hwnd As Integer, wMsg As Integer, wParam As Integer, lParam As Integer) As Integer
    End Function
Code:
        'Green Colour
        SendMessage(ProgressBar1.Handle, 1040, 1, 0)
        'Red Colour
        SendMessage(ProgressBar1.Handle, 1040, 2, 0)
        'Yellow Colour
        SendMessage(ProgressBar1.Handle, 1040, 3, 0)
Quote Originally Posted by steveroseik View Post
You can Do This :
Code:
Try
GhostProgressBar1.value = GhostProgressBar1.value + 1

Catch ex as exception

End Try
You can Put this in a Timer
and The Reason I've Put it in Try is When The ProgressBar value equal 100 and then the codes works to 100 + 1 = 101 Then There will be an error right here.


I Also Know a Way Changing The ProgressBar Colour to {Red, Yellow, Green(default)}

Here is The Code :

Code:
Option Explicit On

Imports System . I O 
' Without Spaces ^^
Imports System.Runtime.InteropServices
Imports Microsoft.Win32.Registry
Imports System.Drawing


Public Class Form1
    <DllImport("User32.Dll")> _
    Public Shared Function SendMessage(hwnd As Integer, wMsg As Integer, wParam As Integer, lParam As Integer) As Integer
    End Function
Code:
        'Green Colour
        SendMessage(ProgressBar1.Handle, 1040, 1, 0)
        'Red Colour
        SendMessage(ProgressBar1.Handle, 1040, 2, 0)
        'Yellow Colour
        SendMessage(ProgressBar1.Handle, 1040, 3, 0)

Or this
Code:
Progressbar.value = Val(Progressbar.value) +1
Or you can just use the following:

Code:
Progressbar.value += 1
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us