-
基于c#的时钟
资源描述本源程序是基于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 =
- 2022-01-26 05:22:52下载
- 积分:1
-
窗口分割类实例,使用简单,方便,只需把XSplitterWnd.cpp,XSplitterWnd.h加入源就可以使用...
窗口分割类实例,使用简单,方便,只需把XSplitterWnd.cpp,XSplitterWnd.h加入源就可以使用-window segmentation category example, the use of simple, convenient and needs to do XSplitterWnd.cpp, XSplitterWnd.h join the source can use
- 2023-03-25 02:55:04下载
- 积分:1
-
在窗体上用画布绘图 这是一个学习界面编程的小程序,简单易用。...
在窗体上用画布绘图 这是一个学习界面编程的小程序,简单易用。-forms on the canvas with graphics This is a study of small programming interface procedures, simple to use.
- 2022-02-06 07:26:17下载
- 积分:1
-
带预览的图像选择框,可以查看你所选择的的图像显在选择框上,很实用...
带预览的图像选择框,可以查看你所选择的的图像显在选择框上,很实用-with preview images selection box, you can view the choice of the images show the selection box, it is very practical
- 2023-02-09 20:20:03下载
- 积分:1
-
模仿汽包提示的提示窗体
QT写的模仿汽包提示的提示窗体,窗体从屏幕右下角慢慢出来,过几秒中开始半透明直到完全消失
- 2022-03-23 16:56:18下载
- 积分:1
-
用vc实现的用鼠标调节对比度
用vc实现的用鼠标调节对比度-vc used to achieve the regulatory contrast with the mouse
- 2022-10-15 10:15:03下载
- 积分:1
-
animation vibration source of the dialog box
动画震动对话框的源码-animation vibration source of the dialog box
- 2022-01-22 12:34:03下载
- 积分:1
-
A GUI file that permit play wav files, but with someones tips such as echo, reve...
A GUI file that permit play wav files, but with someones tips such as echo, reverse function, player mono function, fast play, slow play,etc-A GUI file that permit play wav files, but with someones tips such as echo, reverse function, player mono function, fast play, slow play,etc
- 2022-09-06 09:05:03下载
- 积分:1
-
二分法 GUI
图形用户界面开发利用 MATLAB 编程语言是有用的方程使用二分法查找根源。欢迎下载、试用。谢谢大家的支持。
- 2022-07-28 10:06:52下载
- 积分:1
-
JiuGongTu RUF algorithm and automatic processing : Concorde in the hospital, so...
九宫阵算法及自动处理:在协和医院时,做的一个关于九宫阵程度,据统计国内外至少每天有2亿人在做这个填数游戏,有利于开发智力,老少皆宜!-JiuGongTu RUF algorithm and automatic processing : Concorde in the hospital, so an array of JiuGongTu, According to statistics at home and abroad for at least a day, 200 million people do fill this game is conducive to the development of intellectual and family-friendly!
- 2022-08-03 18:26:50下载
- 积分:1