10 Project On Visual Basic 6.0 2
10 Project On Visual Basic 6.0 2
0 (Welcome): -
Command1
Private Sub Command1_Click()
Text1.Text = "Welcome to KJNNYCC"
Text1.BackColor = vbYellow
Text1.ForeColor = vbRed
End Sub
Command2
Private Sub Command2_Click()
Text1.Text = ""
Text1.BackColor = vbWhite
End Sub
Command3
Private Sub Command3_Click()
End
End Sub
Design a window that displays the current month, day, and year.
Also, display thecurrent time, updating it every second (look into the
Timercontrol). Make the windowlook something like a calendarpage.
Play with object properties to make it pretty.
Private Sub Timer1()
Dim Today As Variant
Today = Now
Label1.Caption = Format(Today, "dddd")
Label5.Caption = Format(Today, "mmmm")
Label3.Caption = Format(Today, "yyyy")
Label4.Caption = Format(Today, "d")
Label2.Caption = Format(Today, "h:mm:ss ampm")
End Sub
Text3.text=val(text1.text)-val(text2.text)
Coding of command 3 :
Text3.text=val(text1.text)*val(text2.text)
Coding of command 4:
Text3.text=val(text1.text)/val(text2.text)