Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Practical No:12

Name :Shubham Kanodje


Roll No:65
Input:

Public Class Form1


Dim n As Integer
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
n = Val(TextBox1.Text) + Val(TextBox2.Text)
MsgBox("Addition=" & n)
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


PictureBox2.ImageLocation = "c:\pict\nature"
End Sub
Private Sub Button4_click(sender As Object, e As EventArgs) Handles Buttons4.Click
Timer1.Start()

End Sub

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick

If ProgressBar1.Value >= 100 Then


ProgressBar1.Value = 0
Else
ProgressBar1.Value = ProgressBar1.Value + 1
Label3.Text = ProgressBar1.Value & "% Completed"

End If

End Class

OutPut:

You might also like