Progress Bars VB 08/C# menu

User Tag List

Results 1 to 7 of 7
  1. #1
    omg_lol's Avatar Member
    Reputation
    25
    Join Date
    Dec 2008
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Progress Bars VB 08/C#

    I need the code in either VB 08 or C# to make a progress bar raise an event when it is full, more specifically, i want a button to start timer 1, which does
    Code:
    Progressbar1.increment(1)
    and i want the progress bar to start timer 2 when it is completed, once again, i can take code in either VB 08 or C#, thanks
    OMG LOL

    Progress Bars VB 08/C#
  2. #2
    Yamachi's Avatar Contributor
    Reputation
    149
    Join Date
    May 2007
    Posts
    653
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by omg_lol View Post
    I need the code in either VB 08 or C# to make a progress bar raise an event when it is full, more specifically, i want a button to start timer 1, which does
    Code:
    Progressbar1.increment(1)
    and i want the progress bar to start timer 2 when it is completed, once again, i can take code in either VB 08 or C#, thanks
    1. It's "VB.net", not "VB".
    2. Typing "ProgressBar1." will bring up a list of functions/attributes for that object.
    3. Google is your best friend if you still can't figure it out.

    P.S. If you're using loops, just add an "if" to check when ProgressBar1.value = 100, or do a while loop.


  3. #3
    blubb12345's Avatar Contributor
    Reputation
    121
    Join Date
    Feb 2007
    Posts
    193
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    for vb 08 you can use that, its not great but it works

    you need to create 1 button and to progressbars
    Code:
      Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Timer1.Enabled = True
            Button1.Enabled = False
        End Sub
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If ProgressBar1.Value < 100 Then
                ProgressBar1.Value += 1
            Else
                Timer1.Enabled = False
                Timer2.Enabled = True
            End If
        End Sub
    
        Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
            If ProgressBar2.Value < 100 Then
                ProgressBar2.Value += 1
            Else
                Timer2.Enabled = False
                Button1.Enabled = True
            End If
        End Sub
    End Class
    Last edited by blubb12345; 02-03-2009 at 05:20 PM.
    $50 SUBWAY CARD GIVEAWAY >> https://bit.ly/aMbaU5 << LIMITED TIME OFFER

  4. #4
    omg_lol's Avatar Member
    Reputation
    25
    Join Date
    Dec 2008
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by »Yama« View Post
    1. It's "VB.net", not "VB".
    2. Typing "ProgressBar1." will bring up a list of functions/attributes for that object.
    3. Google is your best friend if you still can't figure it out.

    P.S. If you're using loops, just add an "if" to check when ProgressBar1.value = 100, or do a while loop.
    1. its whatever i want to call it.
    2. Pretty pathetic that you gotta call me up on that.
    3. Fail for saying anything about what i called it.
    OMG LOL

  5. #5
    JoeBiden's Avatar Contributor
    Reputation
    153
    Join Date
    Aug 2007
    Posts
    498
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yama might be having a bad day dont worry :P

    @blubb, that gotta be the most stupid way of doing something tbh

    @omg i'll try to find the code for you, hang on

    okay you make a timer sub or anything then you use this f.ex:


    I tried to make something the way you said it.. is this what you ment:

    Code:
    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Process.Start("WWW.MMOWNED.COM")
            ProgressBar1.Value = 100
            If ProgressBar1.Value >= 100 Then
                Process.Start("WWW.MMOGLIDER.COM")
            End If
        End Sub
    This will start mmowned.com and set progressbar to full(100) in this case
    and if the progressbar is 100 it will start mmoglider

    ofcourse you could make an IF that would set it to 100 only once a certain process has been found and so on.. there are 100's of ways just play arround with it

    you can make it more interesting like this:

    Code:
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            System.Diagnostics.Process.Start("WWW.MMOWNED.COM")
            Dim processes() As Process
            Dim instance As Process
            Dim process As New Process()
            processes = process.GetProcesses
            For Each instance In processes
                If instance.ProcessName = "MMowned - World of Warcraft Exploits, Hacks, Bots and Guides" Then
                    ProgressBar1.Value = 100
                Else : ProgressBar1.Value = 50
                End If
            Next
            If ProgressBar1.Value >= 100 Then
                process.Start("WWW.MMOGLIDER.COM")
            Else
                MsgBox("Sorry, couldn't start mmowned.com")
            End If
        End Sub
    so you tell your comp to open mmowned, then check if mmowned was opened if it was opened set the progress bar to full otherwise set it to half, if the progress bar was set to full then open mmoglider if it wasnt full (means it failed then give an error msgbox)
    Keep in mind you need some kinda timer between starting mmowned and then searching for it because vb will do it almost instantly and therefore it will always say process not found

    i hope i made sense.. im tired as hell
    Last edited by JoeBiden; 02-03-2009 at 07:13 PM.

  6. #6
    omg_lol's Avatar Member
    Reputation
    25
    Join Date
    Dec 2008
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol
    @Joe thanks for help it helped alot
    OMG LOL

  7. #7
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, the name is VB.NET. If you must add an 08, it's VB.NET08. VB.NET and VB are not the same thing.

    As to progress bars, I found this useful when I started with them: Working with ProgressBar in VB.NET

Similar Threads

  1. US Based Progressive Raiding Guild <Llama Bar Mitzvah> on Gamer-District
    By Prodiege in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 07-02-2013, 11:37 PM
  2. Casting bar,
    By Mr.Goomis in forum World of Warcraft Exploration
    Replies: 17
    Last Post: 03-26-2007, 12:58 AM
  3. New acct. will inform of progress.
    By KuRIoS in forum WoW Bot Maps And Profiles
    Replies: 13
    Last Post: 12-18-2006, 10:38 AM
  4. Run A Bar And Make Money For Both Factions
    By Firerobot in forum World of Warcraft Guides
    Replies: 11
    Last Post: 12-17-2006, 03:56 PM
  5. The scrolling top 100 bar
    By Agent in forum World of Warcraft General
    Replies: 7
    Last Post: 08-19-2006, 05:56 PM
All times are GMT -5. The time now is 04:38 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search