-
基于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
-
经典的网站模板,在10的模板,但有些图片可能需要处理…
经典网页模板,内有十个模板,但是部分图片可能需要加工和修改.-classic website template, within 10 template, but some images may need processing and modification.
- 2022-01-28 06:10:29下载
- 积分:1
-
vb开发!实现flash和vb相结合,做出来vb美化窗口!以及flash和vb结合的小程序应用!...
vb开发!实现flash和vb相结合,做出来vb美化窗口!以及flash和vb结合的小程序应用!-vb developers! Achieve the combination of flash and vb, vb landscaping done out of the window! As well as the combination of flash and vb application of a small program!
- 2023-05-01 07:15:03下载
- 积分:1
-
自适应屏幕程序(基于LabVIEW开发)
自适应屏幕程序(基于LabVIEW开发),自动根据你设定的屏幕分辩率,运行的时候自动调整界面的尺寸。满足用户接口需要。界面友好。希望对LabVIEW爱好者有所启发。
- 2022-06-20 15:35:18下载
- 积分:1
-
javaweb开发资料
null java web for design!这个代码有助于帮助你写很多东西的哟,为了筹够字数我还是随便大点东西上去吧,虽然字打错了也觉得还ok啦,你们要是下载的话机讲究了,嘿嘿!恩恩,够50个子了吧?难道管理员还要删帖?不带这样万人的呀,哎呀又打错字,嘻嘻!S吧
- 2022-02-14 19:23:39下载
- 积分:1
-
可以列出指定文件夹,并双击打开。
可以列出指定文件夹,并双击打开。-list designated folder, and double-click to open.
- 2023-05-08 13:20:02下载
- 积分:1
-
qt environment
详细阐述嵌入式qt开发平台的搭建-qt environment
- 2023-01-02 16:00:15下载
- 积分:1
-
这是一个简单的记事本程序,可以让你从简单的程序开始了解变成的思想和流程...
这是一个简单的记事本程序,可以让你从简单的程序开始了解变成的思想和流程-This is a simple Notepad program that lets you begin to understand simple procedure into a flow of ideas and
- 2022-06-30 16:18:27下载
- 积分:1
-
A program to automatically edit an automata by java
A program to automatically edit an automata by java
- 2022-04-10 19:32:41下载
- 积分:1
-
颜色窗体控件。MFC不是更强大,它可以自动的变革。
实现彩色表格控件。比mfc的强大多了,可以自动改变颜色,一目了然-color forms controls. Mfc than the more powerful, it can automatically change colors, transparent
- 2022-03-21 22:41:15下载
- 积分:1