-
基于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
-
光的FTP程序
ftp程序示例
- 2022-08-05 22:31:36下载
- 积分:1
-
wonderful directx
很棒的directx-试试看
- 2022-10-07 12:05:03下载
- 积分:1
-
MFC的精准定位CSliderCtrl不是在这种情况下衍生出来的一类…
mfc的CsliderCtrl不能精确定位 本例从CSliderCtrl派生一类 实现鼠标单击 则滑块移动到精确位置-mfc precise positioning of CsliderCtrl not in this case a class derived from the realization of CSliderCtrl mouse click the slider to the exact location of
- 2022-05-10 15:56:49下载
- 积分:1
-
直接运行资源文件中的可执行文件
直接运行资源文件中的可执行文件提供了两种调用方式,具体可见 Demo.dpr如果资源文件里的执行文件使用了窗口,那么需要在Demo.dpr引用FORMS如果资源文件里的执行文件使用了ADO,那么也要在Demoh.dpr里引用如果DEMO.dpr 缺少资源文件里的执行文件需要的单元,那么便会发生无法预料的错误
- 2023-05-30 11:40:03下载
- 积分:1
-
Visual Studio style UI Visual Studio风格的界面效果(15KB)
Visual Studio style UI Visual Studio风格的界面效果(15KB)-Visual Studio style UI Visual Studio style interface effects (15KB)
- 2022-01-25 16:33:16下载
- 积分:1
-
its a finite state machine simulator
its a finite state machine simulator
- 2022-01-28 03:52:51下载
- 积分:1
-
一步 向您展现,mfc框架的实现过程,达内老师经典之作!
一步 向您展现,mfc框架的实现过程,达内老师经典之作!-Show you step by step, mfc framework of the implementation process
- 2022-01-25 22:50:26下载
- 积分:1
-
C#登陆界面 连接Oracle数据库
使用C#制作的登陆界面 可以连接Oracle数据库进行登陆和注册 使用WPF窗体 自己是初学者 用了一星期才做了这么一个程序
窗体直接拖拽控件进去的 触发代码是自己写的
- 2023-07-13 04:55:04下载
- 积分:1
-
the recording procedures, and to preserve the cease broadcasting capabilities th...
本程序具有录音,停止并保存,播放等功能,通过此程序可以自由地录制自己所需要的各种语音等.-the recording procedures, and to preserve the cease broadcasting capabilities through this program to be free to record their various needs such as voice.
- 2022-02-06 11:37:26下载
- 积分:1