登录
首页 » 界面开发 » 基于c#的时钟

基于c#的时钟

于 2022-01-26 发布 文件大小:47.56 kB
0 193
下载积分: 2 下载次数: 1

代码说明:

资源描述本源程序是基于C#的时钟设计,能为初学者提供参考价值,为初学者提供基本的编写代码思路, namespace Clock { public partial class MainForm : Form { private PointF center; private float r; private Pen hourPen; private Pen minutePen; private Pen secondPen; private Thread timeThread; public MainForm() { InitializeComponent(); ShowInTaskbar = false;//不在任务栏中显示 SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.UserPaint,true); SetStyle(ControlStyles.AllPaintingInWmPaint,true); center = new PointF(ClientSize.Width/ 2.0f, ClientSize.Height/ 2.0f); r = Math.Min(ClientSize.Width / 2.0f, ClientSize.Height / 2.0f); hourPen = new Pen(Color.Black, 2.5f); minutePen = new Pen(Color.Black, 1.5f); secondPen = new Pen(Color.Black, 0.5f); timeThread=new Thread(new ThreadStart(DrawTime)); timeThread.Start(); } protected override void OnPaint(PaintEventArgs e) { Graphics g = e.Graphics; g.Clear(BackColor); //g.SmoothingMode =

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • c++ GUI QT4 sourcecode
    c++ GUI QT4 随书的源代码,sourcecode。测试可用。喜欢本书的读者可以边学习边查看作者写的代码,快速的提高自己
    2022-04-27 21:22:41下载
    积分:1
  • using resources customization, user
    采用资源定制,实现用户自定义形状的窗口,定制个性的界面风格-using resources customization, user-defined shape of the window, customized interface style
    2022-03-23 20:33:19下载
    积分:1
  • 一个初期的Office XP风格的,可以研究研究
    一个初期的Office XP风格的界面,可以研究研究--An interface with incipient Office XP style ,worth study
    2022-03-26 06:08:20下载
    积分:1
  • 在Visual Studio 2008中,使用OpenGL graphiing钻石。
    在Visual Studio 2008下使用OpenGL图形技术绘制钻石图案的代码-in the Visual Studio 2008 ,using OpenGL for graphiing the diamond.
    2022-07-15 07:48:44下载
    积分:1
  • self
    自编的一些实用8279显示程序及DAC0832波形产生程序,低频相位测量仪设计及相关程序-self-programming pratical programs which includes: - 8279 displaying - DAC0832 wave generating - Low-frequency-phase meter designing - others related
    2022-01-21 06:20:08下载
    积分:1
  • 是对木材切割过程的模拟,包括对切割后木材端的模拟显示,设计语言是VC...
    是对木材切割过程的模拟,包括对切割后木材端面的模拟显示,设计语言是VC-for wood cutting process simulation, including the cutting of timber End simulation, design language is VC
    2022-06-29 21:05:03下载
    积分:1
  • 手电筒后虽然谈话身体容易后身体后身体搞活山豆根后山豆根山豆根山豆根山豆根时光时光是...
    手电筒后虽然谈话身体容易后身体后身体搞活山豆根后山豆根山豆根山豆根山豆根时光时光是-flashlight after talks after the body more vulnerable to enliven the body after body after SSCC SSCC SSCC SSCC SSCC time is the time
    2023-01-10 22:30:03下载
    积分:1
  • OutlookGrid: grouping and arranging items in Outlook style
    Introduction If you work a lot with lists larger than, say, a 100 items (for instance, the list of emails in your inbox), it quickly becomes difficult and tedious to find a specific item without resorting to filtering, searching, sorting, and/or grouping functions. Especially, sorting and grouping greatly improves the structuring of the items in a list, and it is a feature that I would want to apply to all my lists, by default. In particular, I"ve been looking for a list/grid control that allows arranging and grouping of similar items together, much like the grid (or list?) used in Outlook 2003. 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-02-11 15:11:42下载
    积分:1
  • 一个JAVA的虚拟仪器 它是关于虚拟信号生器的研究
    一个JAVA的虚拟仪器 它是关于虚拟信号发生器的研究-a Java virtual machines it is on the virtual signal generator of
    2022-07-18 17:39:22下载
    积分:1
  • 课程管理和绩效管理,ASP的前景,台湾SQL2…
    用于课程表管理和成绩的管理,前台ASP后,台SQL2000,非常方便实用-for curriculum management and performance management, ASP prospects, Taiwan SQL2000, very convenient and practical
    2023-04-25 13:50:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载