시계예제 본문

[PL]/VB & VB.NET

시계예제

객과 함께. 2008. 7. 28. 22:49

Public Class Form1

     ''' 작성일자 : 2008. 07. 28
    ''' 프로그램명 : 시계예제 프로그램

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Timer1.Interval = 1000
        Timer1.Enabled = True
        TextBox1.Text = Now()
        TextBox2.Text = DateTime.Now
        TextBox3.Text = Format(DateTime.Now, "hh시 mm분 ss초")
    End Sub

'===========================================================================================================

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Close()
    End Sub
End Class

'[PL] > VB & VB.NET' 카테고리의 다른 글

[ vb 2008 ] ListView 예제.  (0) 2009.12.30
[ VB.NET ] OpenFileDialog 예제   (0) 2009.12.29
[vb 2008]Try Catch 정리  (0) 2009.12.24
[vb.net 2005] 날자 및 시간 예제  (0) 2008.07.27
[visual basic 2005]종료 코드  (0) 2008.04.11