Results 1 to 6 of 6
  1. #1
    =Advocate='s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    6
    My Mood
    Cheerful

    [HELP]Progress bar

    Hello, I'm trying to fit a progress bar in to my cleaner but I
    Current do not know how to set an increment for each deleted item.
    All that I have right now is when I hit "Clean" its already cleaned but the
    progress bar loads very slowly to 100% when technically it only reacts to the
    "Clean".

    Example of what I currently want:
    .Jpg deleted = [| ]
    .Txt deleted = [|| ]


    Example of what its currently doing:
    "hits button" = [|||||||]
    Last edited by =Advocate=; 07-26-2010 at 08:59 AM.

  2. #2
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,356
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    It deletes very fast...

  3. #3
    =Advocate='s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    6
    My Mood
    Cheerful
    It does I know that, But I aiming for it to follow what it deletes.

  4. #4
    WootXD's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    64
    Reputation
    13
    Thanks
    13
    My Mood
    Amazed
    Hmm Try This Method

    Code:
     If Progressbar1.Value = 50  Then '(i took 50 for an example)
    'your code for the thingy here
    end if      
    If Progressbar1.value = 100  Then '(as i said b4 i took 100 as an example)
    'your code here
    End If
    This Should Work

    Change 50 and 100 with other numbers if you want.
    Last edited by WootXD; 07-26-2010 at 09:44 AM. Reason: The Edited Code
    Add Me On Steam
    tehwoot123xd
    People That I Have Successfully Traded With :
    toobanooba
    [MPGH]Insane

  5. #5
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,679
    My Mood
    Mellow
    Or you could do it better and say

    GLOBAL:

    dim totalchecked as integer

    then in your checkboxes checkchanged

    if CheckBoxX.Checked = True
    totalchecked += 1
    else
    totalchecked -=1
    end if.

    Then in your cleaning event after each seperate cleaning sequence

    add

    ProgressBar1.Value += (100/totalchecked)

    something like that

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. #6
    =Advocate='s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    6
    My Mood
    Cheerful
    Quote Originally Posted by J-Deezy View Post
    Or you could do it better and say

    GLOBAL:

    dim totalchecked as integer

    then in your checkboxes checkchanged

    if CheckBoxX.Checked = True
    totalchecked += 1
    else
    totalchecked -=1
    end if.

    Then in your cleaning event after each seperate cleaning sequence

    add

    ProgressBar1.Value += (100/totalchecked)

    something like that
    My brain hurts.

Similar Threads

  1. [Help] Little help with progress bar
    By Vertu™ in forum Visual Basic Programming
    Replies: 3
    Last Post: 05-14-2011, 10:59 AM
  2. [Help Request] How can i create a progress bar
    By sdm in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 05-01-2011, 10:03 AM
  3. [Help] progress bar
    By Maniac101 in forum Visual Basic Programming
    Replies: 9
    Last Post: 08-26-2010, 07:08 PM
  4. [HELP]vista progress bar[Solved]
    By /b/oss in forum Visual Basic Programming
    Replies: 12
    Last Post: 08-23-2010, 12:54 PM
  5. [TUT] how to make a REAL progress bar
    By XGelite in forum Visual Basic Programming
    Replies: 5
    Last Post: 11-12-2009, 03:28 PM