-
基于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
-
基于VC++的经典的通用机床主传动系统优化设计
基于VC++的经典的通用机床主传动系统优化设计-Based on VC++ classic Universal Machine Design Optimization of the main transmission system
- 2022-10-06 11:55:03下载
- 积分:1
-
一个.NET下的绘图软件的源代码,开发语言为CSharp
一个.NET下的绘图软件的源代码,开发语言为CSharp-1.NET mapping of the source code for software development language for CSharp
- 2023-08-27 23:55:02下载
- 积分:1
-
VC简易绘图界面 图形程序的好例子 具体请参看例题
VC简易绘图界面 图形程序的好例子 具体请参看例题-VC simple graphical interface graphics program a good example of concrete examples s
- 2022-06-16 09:18:53下载
- 积分:1
-
Japan
日本的著名的开源的图形用户界面 widestudio的手册-Japan
- 2022-04-06 18:59:21下载
- 积分:1
-
process management of the process of communication process and the father of the...
进程管理中的进程通信 父进程和子进程间的通信 以及五种通信方式-process management of the process of communication process and the father of the child process and the communication between the five means of communication
- 2022-03-03 00:15:10下载
- 积分:1
-
只是www.vwind.com下。希望你会喜欢。
刚从www.vwind.com 下的。希望大家能喜欢。-just www.vwind.com under. Hope you will like.
- 2022-03-19 10:19:11下载
- 积分:1
-
CxImage is a C++ class to load, save, display, transform BMP, JPEG, GIF, PNG, TI...
CxImage is a C++ class to load, save, display, transform BMP, JPEG, GIF, PNG, TIFF, MNG, ICO, PCX, TGA, WMF, WBMP, JBG, J2K images.
- 2023-01-17 15:35:03下载
- 积分:1
-
一个类似于word中取颜色和箭头的例子,推荐下载
一个类似于word中取颜色和箭头的例子,推荐下载--An example which is simialar to get colors and arrows in word,recommend!
- 2023-09-02 17:55:04下载
- 积分:1
-
这是一个用vc编写的很漂亮的编辑框程序,不需要解压密码
这是一个用vc编写的很漂亮的编辑框程序,不需要解压密码 -vc prepared with a very nice frame editing procedures, not extracting passwords
- 2022-08-03 00:35:22下载
- 积分:1