-
基于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
-
Axtive的简单实用例子,可以方便实用
Axtive的简单实用例子,可以方便实用-Axtive the simple and practical examples that can be practical
- 2022-03-07 17:04:21下载
- 积分:1
-
a menu system to add a menu item example
一个给系统菜单添加菜单项的例子-a menu system to add a menu item example
- 2022-02-13 16:32:57下载
- 积分:1
-
界面程序,Visual Studio2005开发,Windows平台。
界面程序,Visual Studio2005开发,Windows平台。-Visual Studio2005,Windows
- 2023-05-29 12:55:03下载
- 积分:1
-
欧姆龙USB通讯
应用背景
通讯协议
AB 00 11 80 00 02 00 00 00 00 00 00 6F
04 01 FF FF 02 03 B2
AB 00 11 80 00 02 00 00 00 00 00 00 00 04 01 FF FF 04 03 45
AB 00 10 80 00 02 00 00 00 00 00 00 A3
04 02 FF FF 03 E4
AB 00 10 80 00 02 00 00 00 00 00 00 00 04 02 FF FF 03 41关键技术
很详细的欧姆龙USB通讯 VS2012 VB.NET语言
很详细的欧姆龙USB通讯 VS2012 VB.NET语言
很详细的欧姆龙USB通讯 VS2012 VB.NET语言
很详细的欧姆龙USB通讯 VS2012 VB.NET语言
很详细的欧姆龙USB通讯 VS2012 VB.NET语言
- 2022-05-27 16:38:41下载
- 积分:1
-
xtra grid控件
xtra grid控件-xtra grid control
- 2022-01-27 22:38:46下载
- 积分:1
-
VLC player application
应用背景基于VLC2.15的播放库,写的一个DEMO,VLC是个强大的播放器,支持众多音频与视频解码器及文件格式,并支持DVD影音光盘,VCD影音光盘及各类流式协议,它也能作为unicast或 multicast的流式服务器在IPv4或 IPv6的高速网络连接下使用。它融合了FFmpeg计划的解码器与libdvdcss程序库使其有播放多媒体文件及加密DVD影碟的功能。关键技术
1.支持音视频文件播放;
2.支持UDPRTSP网络协议流媒体直播;
3.采用MFC框架编写的,简单易懂;
4.可以通过参数设置调用VLC 硬件加速、网络缓存、解码方式、推送方式等。
5.可以进行轮巡播放,不停切换视频源。
- 2022-08-10 10:48:40下载
- 积分:1
-
vc++模仿Windows任务栏
vc++模仿Windows任务栏-vc imitate the Windows task bar
- 2022-11-10 06:50:03下载
- 积分:1
-
window界面的字符变化
window界面的字符变化-window interface of the characters change
- 2022-12-17 22:05:03下载
- 积分:1
-
对1帧图像进行8方向的sobel算子提取边缘,原始图像格式是BMP
对1帧图像进行8方向的sobel算子提取边缘,原始图像格式是BMP-right image for an eight direction of the pixel edge detection operator, is the original image BMP format
- 2022-03-14 18:05:44下载
- 积分:1