首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Visual Basic实现时钟效果
引用本文:刘洪坡,吕冰清.Visual Basic实现时钟效果[J].南阳师范学院学报,2004,3(9):69-71.
作者姓名:刘洪坡  吕冰清
作者单位:1. 河南工业职业技术学院,信息工程系,河南,南阳,473009
2. 河南工业职业技术学院,数学教研室,河南,南阳,473009
摘    要:介绍一个通过窗体的绘图方法,实现时钟效果的示例。在窗体中引入定时器(Timer)控件,设置一定的定时间隔Interval(本程序设为1000ms),每当定时器触发时,用VB提供的Line方法画出当前时刻的时针、分针和秒针所在的位置,从而实现时钟效果。

关 键 词:VB  绘图方法  定时器
文章编号:1671-6132(2004)09-0069-03
修稿时间:2004年4月20日

The Realize of Clock Effect Using Visual Basic
Abstract:This paper displays a method and skill of clock effect realization using painting method and timer control that VB provide.It will introduce an example of clock effect realized by painting method of a form. A timer will be led into the form and set certain timing interval,e,g 1000ms.Whenever the timer triggers the clock effect will be realized by drawing the site of the hour hand,minute hand,second hand place of the Current time with the Line that VB provide.
Keywords:VB  painting method  timer
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号