-
基于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
-
带有标题栏的菜单
带有标题栏的菜单-column with the title menu
- 2023-03-24 07:55:03下载
- 积分:1
-
这个程序主要实现的功能是在彩色显示器上画圆,你可以随意的画...
这个程序主要实现的功能是在彩色显示器上画圆,你可以随意的画-this procedure main function is to display the Color Circle, you can arbitrarily paintings
- 2022-03-06 00:41:48下载
- 积分:1
-
建一个透明的窗体 在VB中建一个透明的窗体 非常的好用
建一个透明的窗体 在VB中建一个透明的窗体 非常的好用-build a transparent window in VB built a very transparent Form Easy
- 2022-08-13 20:56:41下载
- 积分:1
-
以上代码实现修改显示器分辨率和刷新频率的功能,其中#region Windows Form Designer generated code private vo...
以上代码实现修改显示器分辨率和刷新频率的功能,其中#region Windows Form Designer generated code private void InitializeComponent() { this.AutoScaleBaseSize = new System.Drawing.Size(6, 14) this.ClientSize = new System.Drawing.Size(292, 273) this.Text = "改变屏幕分辨率的例子" 好象有点问题,请站长帮忙指正,修改-achieve the above code revision display resolution and refresh frequency features,# region Windows Form Designer generated code private void InitializeComponent () (this.AutoScaleBaseSize = new System.Drawing.Size (6, 14) = new System.Drawing this.ClientSize . Size (292, 273) = this.Text "change the screen resolution examples" seems a little problem, please help correct station revised
- 2022-02-01 01:26:24下载
- 积分:1
-
beautiful station!
美化画图界面,能够画出很多漂亮的界面,自己试一下。-beautiful station!
- 2022-06-16 15:00:39下载
- 积分:1
-
Programming Windows : The definitive developper s guide
Programming Windows : The definitive developper s guide
- 2022-02-07 13:09:55下载
- 积分:1
-
象棋比赛
这是一盘棋进行作为软件项目过程中的一个大学项目.它有一个与 artificcial 高危的象棋游戏的逻辑和它有一个图形用户界面,用户可以从保存的文件的列表中选择游戏的水平、 球员的数量和已保存的游戏。也可以储存你的游戏,稍后继续。
- 2022-06-03 06:43:47下载
- 积分:1
-
网站用户访问来源饼形图数据统计代码
应用背景基于js技术制作的饼状图统计代码,效果比较好,十分的实用,可以互相交流关键技术
- 2022-09-28 07:20:03下载
- 积分: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