Results 1 to 9 of 9
  1. #1
    iSmexy's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    16,204
    Reputation
    1355
    Thanks
    3,734

    Progress Bar Help

    if i enter these code

    If TextBox1.Text = "" Then MsgBox("Username Is Missing")
    If TextBox2.Text = "" Then
    MsgBox("Password is missing")
    If TextBox3.Text = "" Then
    MsgBox("Sequrity Answer is Missing")

    and i dont want the progress bar to laod till all the info are filled out how do i make it stop loading and make it load when its filled out

    List of Middleman Impersonations
    Current MPGH Staff
    Report a Scammer here


    Member Since: 5 Dec 2011
    Crossfire Minion Since: 19 Feb 2013 - 24 Oct 2014
    Minecraft Minion Since: 4 Feb 2014 - 24 Oct 2014
    BattleOn Minion Since: 26 Aug 2014 - 24 Oct 2014
    Donator Since: Mar 12 2014


     

    x x

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by iSmexy View Post
    if i enter these code

    If TextBox1.Text = "" Then MsgBox("Username Is Missing")
    If TextBox2.Text = "" Then
    MsgBox("Password is missing")
    If TextBox3.Text = "" Then
    MsgBox("Sequrity Answer is Missing")

    and i dont want the progress bar to laod till all the info are filled out how do i make it stop loading and make it load when its filled out
    Add the progress bar.
    Set the max value to: 3 (Or how many options you are to check)

    Then in the code you just do:
    ProgressBar1.Increase(1) OR ProgressBar1.Value += 1
    And if wrong: ProgressBar1.Value -= 1
    Code:
    If TextBox1.Text = "" Then 
    MsgBox("Username Is Missing")
    ProgressBar1.Value -= 1
    Else
    ProgressBar1.Increase(1)
    End If
    And no, I can't say it will work 100% (The code :P)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. The Following User Says Thank You to Jorndel For This Useful Post:

    iSmexy (07-15-2012)

  4. #3
    iSmexy's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    16,204
    Reputation
    1355
    Thanks
    3,734
    Quote Originally Posted by Jorndel View Post


    Add the progress bar.
    Set the max value to: 3 (Or how many options you are to check)

    Then in the code you just do:
    ProgressBar1.Increase(1) OR ProgressBar1.Value += 1
    And if wrong: ProgressBar1.Value -= 1
    Code:
    If TextBox1.Text = "" Then 
    MsgBox("Username Is Missing")
    ProgressBar1.Value -= 1
    Else
    ProgressBar1.Increase(1)
    End If
    And no, I can't say it will work 100% (The code :P)
    thanks i will try 2marrow
    Last edited by iSmexy; 07-15-2012 at 06:17 PM.

    List of Middleman Impersonations
    Current MPGH Staff
    Report a Scammer here


    Member Since: 5 Dec 2011
    Crossfire Minion Since: 19 Feb 2013 - 24 Oct 2014
    Minecraft Minion Since: 4 Feb 2014 - 24 Oct 2014
    BattleOn Minion Since: 26 Aug 2014 - 24 Oct 2014
    Donator Since: Mar 12 2014


     

    x x

  5. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    If TextBox1.Text = "" Then MsgBox("Username Is Missing") : Exit Sub
    If TextBox2.Text = "" Then MsgBox("Password is missing") : Exit Sub
    If TextBox3.Text = "" Then MsgBox("Sequrity Answer is Missing") : Exit Sub

    This will stop executing the function when any of the textboxes is empty.



  6. The Following User Says Thank You to Blubb1337 For This Useful Post:

    iSmexy (07-16-2012)

  7. #5
    Broderick's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Basement.
    Posts
    100
    Reputation
    42
    Thanks
    30
    Quote Originally Posted by Blubb1337 View Post
    If TextBox1.Text = "" Then MsgBox("Username Is Missing") : Exit Sub
    If TextBox2.Text = "" Then MsgBox("Password is missing") : Exit Sub
    If TextBox3.Text = "" Then MsgBox("Sequrity Answer is Missing") : Exit Sub

    This will stop executing the function when any of the textboxes is empty.
    Better still, just write a validation function where you can dump all the necessary validation routines.
    The fish trap exists because of the fish.
    Once you've gotten the fish you can forget the trap.
    The rabbit snare exists because of the rabbit.
    Once you've gotten the rabbit, you can forget the snare.
    Words exist because of meaning.
    Once you've gotten the meaning, you can forget the words.
    Where can I find a man who has forgotten words so I can talk with him?

  8. #6
    iSmexy's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    16,204
    Reputation
    1355
    Thanks
    3,734
    Quote Originally Posted by Blubb1337 View Post
    If TextBox1.Text = "" Then MsgBox("Username Is Missing") : Exit Sub
    If TextBox2.Text = "" Then MsgBox("Password is missing") : Exit Sub
    If TextBox3.Text = "" Then MsgBox("Sequrity Answer is Missing") : Exit Sub

    This will stop executing the function when any of the textboxes is empty.
    that works thanks ;D[COLOR="Silver"]

    ---------- Post added at 01:10 PM ---------- Previous post was at 01:10 PM ----------

    @Jorndel that code didnt work but i fixed it

    If TextBox1.Text = "" Then
    MsgBox("Username Is Missing")
    ProgressBar1.Value = 0
    Else
    ProgressBar1.Increment(1)
    End If
    If TextBox2.Text = "" Then
    MsgBox("password Is Missing")
    ProgressBar1.Value = 0
    Else
    ProgressBar1.Increment(1)
    timer1.start()

    List of Middleman Impersonations
    Current MPGH Staff
    Report a Scammer here


    Member Since: 5 Dec 2011
    Crossfire Minion Since: 19 Feb 2013 - 24 Oct 2014
    Minecraft Minion Since: 4 Feb 2014 - 24 Oct 2014
    BattleOn Minion Since: 26 Aug 2014 - 24 Oct 2014
    Donator Since: Mar 12 2014


     

    x x

  9. #7
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Marked Solved. No more posting unless necessary.

  10. #8
    iSmexy's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    16,204
    Reputation
    1355
    Thanks
    3,734
    Quote Originally Posted by combat_arms_981 View Post
    Correct sources are:

    ProgressBar1.Value += 1

    ProgressBar1.Value = ProgressBar1.Value + 1
    i dont need it now i already have my answer @Hassan close this

    List of Middleman Impersonations
    Current MPGH Staff
    Report a Scammer here


    Member Since: 5 Dec 2011
    Crossfire Minion Since: 19 Feb 2013 - 24 Oct 2014
    Minecraft Minion Since: 4 Feb 2014 - 24 Oct 2014
    BattleOn Minion Since: 26 Aug 2014 - 24 Oct 2014
    Donator Since: Mar 12 2014


     

    x x

  11. #9
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Closed on Request !

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. [HELP]Progress bar
    By =Advocate= in forum Visual Basic Programming
    Replies: 5
    Last Post: 07-26-2010, 03:38 PM