Video Lectures‎ > ‎

How to use StatusStrip in Visual Basic 2010 (Eng)

How to use, how to show program status, how to use progressbar, how to change properties, how to change in runtime... status strip in Visual Basic 2010
How to use, how to show program status, how to use progressbar, how to change properties, how to change in runtime... status strip in Visual Basic 2010
The Video is in English and Urdu!
Same coding can run Visual Basic 2008
1. Open Visual Basic 2010 or 2008
2. Click new Project in file menu
3. Draw a statusstrip, a statuslabel and progressbar in it. And draw button on form n double click on it
4. Enter coding
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ToolStripStatusLabel1.Text = "Completing your work... Please Wait..."
        Timer1.Enabled = True
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ToolStripProgressBar1.Value = ToolStripProgressBar1.Value + 2
        If ToolStripProgressBar1.Value = 100 Then
            Timer1.Enabled = False
        End If
    End Sub
End Class

5. Run your Program
Comments