Professional Documents
Culture Documents
Project Ion VB
Project Ion VB
Q2 Design an application to perform arithmetic operations of two numbers entered by the user
End Sub
Private Sub sub __ Click () Text4.Text = Val (Text1.Text) - Val (Text2.Text) End Sub
Private Sub divide _ Click () Text5.Text = Val (Text1.Text) / Val (Text2.Text) End Sub
Q3 Design an application when a user changes a text in the textbox the background color changes.
End Sub
Private Sub Label2_MouseDown (Button As Integer, Shift as Integer, X As Single, Y as Single) Text1.Text = ("down") End Sub
Private Sub Label1_MouseMove (Button As Integer, Shift as Integer, X As Single, Y as Single) Text1.Text = ("move") End Sub
Private Sub Label2_MouseUp (Button As Integer, Shift as Integer, X As Single, Y as Single) Text1.Text = ("up") End Sub