Results 1 to 6 of 6
  1. #1
    reapher99's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    Progress Bar And CheckBox Checks

    Q1. How to make message box appeared once after the progress bar full. How to make the message box close everything.

    Q2. How to make the check box choose only one without any check boxes appeared.

  2. #2
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    1:
    Code:
    If ProgressBar1.Value=ProgressBar1.Maximum Then
    Msgbox("100% progress !")
    End
    End If
    2: Rephrase please ?

  3. #3
    Null::Void's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    47
    Reputation
    6
    Thanks
    7
    My Mood
    Relaxed
    do you mean like if checkbox1 is selected the rest are disabled if so

    Code:
    If Checkbox1.checked = True Then
    Checkbox2.enabled = fasle
    checkbox3.enabled = false 'and so on
    End If
    Chuck that inside a timer

  4. #4
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by Null::Void View Post
    do you mean like if checkbox1 is selected the rest are disabled if so

    Code:
    If Checkbox1.checked = True Then
    Checkbox2.enabled = fasle
    checkbox3.enabled = false 'and so on
    End If
    Chuck that inside a timer
    @reapher99: First add this method to your class:

    Code:
    Sub TickCheckBox(CheckBoxToTick As CheckBox)
            For Each Ctrl As Control In Me.Controls
                If Ctrl.GetType() Is GetType(CheckBox) Then
                    If Not Ctrl Is CheckBoxToTick Then
                        Dim Chk As CheckBox = Ctrl
                        Chk.Checked = False
                    End If
                End If
            Next
            CheckBoxToTick.Checked = True
    End Sub
    Then call it passing the name of the checkbox you want to enable. This will enable the checkbox you want and uncheck every other checkbox on the form.

    Example Call:
    Suppose you are having couple of CheckBoxes in your form. The following call will check the CheckBox2 and uncheck all others.

    Code:
    TickCheckBox(CheckBox2)
    Last edited by Hassan; 04-01-2012 at 10:54 AM.

  5. #5
    reapher99's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Thank you, Hassan

  6. #6
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    No problem. Marked Solved.

Similar Threads

  1. [video]VB.Net: How To: Progress bar and Notify Icon!
    By o0OpurezO0o in forum Programming Tutorials
    Replies: 0
    Last Post: 11-22-2010, 05:11 AM
  2. [Release] Killers Progress Bar V.1.0
    By M.P.G.H[Killer] in forum CrossFire Hacks & Cheats
    Replies: 22
    Last Post: 04-17-2010, 05:50 AM
  3. [TUT]How to make a Simple Progress Bar!
    By DeathHunter in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 04-12-2010, 12:02 AM
  4. Progress Bars!
    By DeathHunter in forum Visual Basic Programming
    Replies: 9
    Last Post: 02-23-2010, 02:23 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