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

基于c#的时钟

于 2022-01-26 发布 文件大小:47.56 kB
0 230
下载积分: 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 个回复

  • tree结构,树形结构的实现,包括权限的设置
    tree结构,树形结构的实现,包括权限的设置-tree structure, tree structure realization, including permissions settings
    2022-03-07 04:14:44下载
    积分:1
  • is my first semester of operation, a series java shop, can find merchandise info...
    是我第一个学期的作业,java编一个shop,可以查询商品信息、顾客信息等。站长,我的老底都要给你掏空了,多多包涵阿-is my first semester of operation, a series java shop, can find merchandise information, customer information.
    2023-07-18 11:20:03下载
    积分:1
  • 应用程序的操作命令
    资源描述 •菜单提供一种方便的命令分组的方法,并使用户更加容易访问这些命令,菜单将应用程序的操作命令以菜单的形式提供给用户。菜单从形式上分为下拉式菜单及弹出式菜单两种。 
    2022-11-18 21:00:04下载
    积分:1
  • 在软件实现工业控制或者其他领域,根据实时数据或者历史数据生成各种历史、实时曲线已经变得非常的重要,但是如何使你的曲线显示功能变得十分的强大而且界面美观呢,这个是...
    在软件实现工业控制或者其他领域,根据实时数据或者历史数据生成各种历史、实时曲线已经变得非常的重要,但是如何使你的曲线显示功能变得十分的强大而且界面美观呢,这个是我在下载到的总多的控件中间最完美的,就像工业仪表控件数世纪飞扬一样,另我爱不释手。在很多技术论坛,如果有很多人需要用到曲线显示控件我都会将这个推荐给他们,确实,这个无论从界面美观还是程序的专业性方面都是无可挑剔的。 这个控件的下载地址在本论坛的一个资源提供的帖子中间,地址是: http://www.vccode.com/showthread.php?s=&threadid=3165&highlight=%C7%FA%CF%DF ,不过好像将已经安装后的DLL,LIB,H文件拷贝到工程中就可以了。ProEssentials曲线控件功能十分强大,提供了几乎所有的曲线显示形式,在这个控件包的演示程序中提供了将近100多种不同的曲线显示功能,而且一个很重要的特点就是他支持中文。下面是我结合SkinMagic实行界面换肤处理后的几个运行界面,在这里提供出来,希望对正在寻求曲线或者工业控制方面控件代码的朋友有帮助。 具体运行效果请见下载程序演示版本。-in industrial control software or other areas, according to real-time data or historical data generated various historical, real-time curve has become very important, but how you display the curve has become very strong and beautiful interface, but this is my downloaded to the total number of controls among the most perfect, like industrial instrumentation dust control for centuries, I appeal to another. Many of the Technical Forum, if a lot of people need to resort to control curve shows
    2022-03-04 03:56:50下载
    积分:1
  • WinFormsUI.Docking可以实现像Visual Studio的窗口停靠、拖拽等功能
    WinFormsUI.Docking可以实现像Visual Studio的窗口停靠、拖拽等功能-WinFormsUI.Docking can be achieved, like Visual Studio" s window docking, drag and drop functions
    2022-03-10 18:26:18下载
    积分:1
  • C #在WPF MVC格式与SQL数据库基于Arduino的指纹scannar考勤软件
    这是一个指纹匹配考勤软件。使用Gt-511-c3传感器采集指纹。然后使用arduino获取模板数据,并通过com端口传送给pc机。以C#为开发平台,采用sql数据库存储信息。代码是在MVC框架中编写的;
    2022-03-25 17:36:53下载
    积分:1
  • color cursor Demonstration Program
    彩色光标演示程序-color cursor Demonstration Program
    2023-06-07 06:55:02下载
    积分:1
  • 改进的水波特效类,包含几种波形算法和圆滑处理等
    改进的水波特效类,包含几种波形算法和圆滑处理等-Improved water effects, are contained in several waveform processing algorithms and sleek
    2022-02-13 10:55:21下载
    积分:1
  • 学习LinkList。自己做了几个测试方法。 用LinkList来模拟栈和序列...
    学习LinkList。自己做了几个测试方法。 用LinkList来模拟栈和序列-Learning LinkList
    2022-05-06 17:17:19下载
    积分:1
  • VIPS browswer using segmentation algorithm
    VIPS browswer using segmentation algorithm
    2022-08-21 12:03:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载