1、 电子钟的程序设计 摘要如今计算机已普及到人们生活以及办公当中,那么电脑桌面电子钟也成为了必需,此次设计就是针对 于使用计算机的人群,利用 Visual basic 设计桌面时钟、日历,运用了时钟控件、按钮控件等,并且各模块采用不同 的算法,完善系统时间存在的一些弊端,以提醒使用电脑的人们合理利用时间,提高办事效率。可以通过鼠标完成 时钟的所有控制,减少一些复杂的程序,并且添加了许多使用的功能,方便用户使用。 关键词电子钟;Visual basic;控件;算法 Design of Electric Clock Program Abstract: The computer has now spr
2、ead to people living and office, then desktop electric clock become people daily life indispensable product.The design is based on the use of computers crowd, use of Visual basic design desktop clock, calendar, clock control using, button control, and each module use different algorithms. The deskto
3、p electric clock is used to remind the computer user reasonable using time, improve work efficiency, can complete all through the mouse clock control, reduce some of the complex procedures, and add many use function. Keywords: electric clock, Visual basic, controls, algorithm 目目 录录 引言 1 1 设计方案 . 1 2
4、 设计使用工具 . 1 2.1 Visual basic 语言 . 1 2.2Visual basic 集成开发环境. 2 2.3 Photoshop . 4 3 电子钟的总体设计 . 4 3.1 功能介绍 4 3.2 设计框图 4 4 电子钟的模块设计 . 4 4.1 电子钟的时钟模块 . 4 4.1.1 算法 . 4 4.1.2 界面设计 6 4.1.2 程序设计 7 4.2 电子钟的日历模块 . 8 4.2.1 算法 . 8 4.2.2 界面设计 9 4.2.3 程序设计 10 4.3 调时模块 10 4.3.1 算法 . 10 4.3.2 界面设计 .11 4.3.3 程序设计 12 4.4 倒计时模块. 14 4.4.1 算法 . 14 4.4.2 界面设计 14 4.4.3 程序设计 14 4.5 闹钟模块 15 4.5.1 算法 . 15 4.5.2 界面设计 15 4.5.3 程序设计 16 5 电子钟的设计说明和调试 . 17 5.1 设计说明 17 5.2 调试 18 6 电子钟的操作流程及运行结果 . 18 6.1 操作流程图. 18 6.2 运行结果