-
基于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
-
eight digital vc realize the problem, beautiful interface, highly functional
八数码难题的vc实现,界面美观,功能很强-eight digital vc realize the problem, beautiful interface, highly functional
- 2023-02-02 06:50:03下载
- 积分:1
-
学生管理
源数据库的SQL服务器 ;学生管理。EXT型图像
- 2022-01-31 15:41:50下载
- 积分:1
-
Tic Tac 游戏
在 vb.netmain 目的创建游戏第一步中创建了良好的图形概念与 tictac 记忆力游戏
- 2022-01-25 14:06:57下载
- 积分:1
-
Wince下的万年历小软件,有源码。显示阴历和阳历
Wince下的万年历小软件,有源码。显示阴历和阳历-the hefty almanac small software and source code. The lunar calendar and the solar calendar shows
- 2022-03-21 17:49:28下载
- 积分:1
-
基于MFC,完全兼容CButton类。实现按钮的自定义图标显示、提示信息、背景自定义、文本自定义、按钮区域根据图形的前景图片显示等等的功能。...
基于MFC,完全兼容CButton类。实现按钮的自定义图标显示、提示信息、背景自定义、文本自定义、按钮区域根据图形的前景图片显示等等的功能。-MFC-based, fully compatible CButton category. Since achieving the button icon definition, a message, from the definition of background, text from the definition graphics buttons region under the prospects for pictures, etc. function.
- 2022-08-23 01:39:03下载
- 积分:1
-
图标编辑器
图标编辑器,对图片进行编辑,使得能够在工程中使用所编辑的图标,目录中是已经编辑好的可执行文件,此工具功能强大啊,请各位下载。图标编辑器,对图片进行编辑,使得能够在工程中使用所编辑的图标,目录中是已经编辑好的可执行文件,此工具功能强大啊,请各位下载。
- 2022-06-30 03:00:40下载
- 积分:1
-
很出名的一个程序,可以很简单地实现控件的拖放功能
很出名的一个程序,可以很简单地实现控件的拖放功能-A very well-known procedures, can be as simple as drag-and-drop feature Controls realize
- 2023-02-24 22:55:04下载
- 积分:1
-
基于jQuery的一个插件脚本,可以在页面上方显示一个书签,用来显示几个页面的内容...
基于jQuery的一个插件脚本,可以在页面上方显示一个书签,用来显示几个页面的内容-Based on jQuery, a plug-in script, you can top of the page displays a bookmark, to display the contents of several pages
- 2022-03-04 14:55:00下载
- 积分:1
-
控件,很好的
控件的使用方法
控件,很好的
控件的使用方法 -Control, good use of controls
- 2022-04-29 22:05:15下载
- 积分:1