-
基于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
-
VB写的ORACLE连接程序,可实现ORACLE数据的读写操作,
VB写的ORACLE连接程序,可实现ORACLE数据的读写操作,-VB wrote ORACLE link, which enables the Oracle data read and write operations,
- 2022-12-21 20:45:03下载
- 积分:1
-
使用 VB.Net 的条形码生成器
其关于条码生成器,它使用条码生成的基本概念集成 39 和 128 格式生成条码。
- 2023-06-25 07:45:03下载
- 积分:1
-
程序模拟流水线和冲突
此程序显示冲突时你给一系列的 MIPS 指令基于 5 阶段大纲。
请注意,只能加载,商店,添加的子函数的实现。
- 2022-03-25 16:50:41下载
- 积分:1
-
是一个带有日期的记事本
已经都编译好的文件 只要在jdk下运行即可...
是一个带有日期的记事本
已经都编译好的文件 只要在jdk下运行即可-is a diary with the date of this would have been compiled in the document as long as can be run jdk
- 2023-07-12 03:40:03下载
- 积分:1
-
24k真彩色任意图形窗体 24k真彩色任意图形窗体
24k真彩色任意图形窗体 24k真彩色任意图形窗体-24k arbitrary true color graphics Form 24k arbitrary true color graphics Form
- 2022-03-06 06:03:58下载
- 积分:1
-
滚动条 提供学习js特效的用户使用,很有意思
滚动条 提供学习js特效的用户使用,很有意思-Scroll bar
- 2023-09-07 04:20:03下载
- 积分:1
-
万年历的简单版,初学vc不足之处请指出。
希望能上传成功
万年历的简单版,初学vc不足之处请指出。
希望能上传成功-simple version of the calendar, beginner vc Department asked deficiencies noted. Hope to upload success!
- 2022-05-16 13:08:12下载
- 积分:1
-
生成文件,改名之后存入上载盘符,通过ftp上传到相应的服务器位置...
生成文件,改名之后存入上载盘符,通过ftp上传到相应的服务器位置-file, renamed after deposited on the drive, ftp upload to the corresponding server location
- 2023-01-31 13:25:04下载
- 积分:1
-
麻将游戏
实现了一个完整的四人网络麻将游戏,该程序集服务器与客户端功能与一体。本章主要介绍了非对等的网络服务功能的建立,传输信息的序列化,建立虚拟的三维空间,绘制图形和显示位图,在内存中创建位图和绘制图形等。
- 2023-05-26 01:30:03下载
- 积分:1