-
基于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
-
Cool ScrollBar
Cool ScrollBar
- 2022-05-31 21:42:29下载
- 积分:1
-
一个用DELPHI编写的程序,很有个性.另有代码
一个用DELPHI编写的程序,很有个性.另有代码-a prepared using DELPHI procedures personality. Another source
- 2022-03-06 07:55:50下载
- 积分:1
-
炫酷duilib界面,可以打包资源
炫酷duilib界面,可以打包资源,透明窗口,皮肤打包在程序里,防止人为修改
- 2023-02-02 01:10:05下载
- 积分:1
-
树列表视图应用程序
此示例演示Windows Presentation Foundation的特定功能,因此,未遵循应用程序开发的最佳实践。对于Windows演示基础(WPF)和Microsoft .NET Framework应用程序开发的最佳实践的全面覆盖,是指在适当以下
- 2023-08-07 16:20:03下载
- 积分:1
-
rolling View bitmap, reference readme
滚动浏览位图,参考readme-rolling View bitmap, reference readme
- 2023-09-05 13:20:02下载
- 积分:1
-
CD 的托盘式
CD 的托盘式-CD-tray
- 2023-03-16 11:40:04下载
- 积分:1
-
BusinessSkin 在Delphi 中应用广泛,可是在C++ Builder 中很多都安装不了,不能运行,这个版本经本人修改却能运行.在bcb5,bcb6...
BusinessSkin 在Delphi 中应用广泛,可是在C++ Builder 中很多都安装不了,不能运行,这个版本经本人修改却能运行.在bcb5,bcb6中安装通过.-BusinessSkin in Delphi widely used, But in many C Builder can be installed in all, not running, This version was revised by the I able to run. In bcb5, bcb6 installed through.
- 2022-03-11 21:56:21下载
- 积分:1
-
服务器程序
TCP,服务器程序输入源的IP地址,按下按钮,聆听运行后,按接受按钮,等待。如果客户端连接到连接浮现的是客户端地址和确认语句。
- 2023-08-04 01:05:04下载
- 积分:1
-
汇编程序设计数字方阵 方便初级的汇编开发人员使用
汇编程序设计数字方阵 方便初级的汇编开发人员使用-Compilation of procedures designed to facilitate digital phalanx of the compilation of the primary developers
- 2022-01-24 18:04:28下载
- 积分:1