随笔分类 -  WinForm

摘要:using System.Runtime.InteropServices; using System.Windows.Forms; namespace WindowsFormsApp { public partial class Form1 : Form { public Form1() { Ini 阅读全文
posted @ 2022-11-17 14:15 水墨晨诗 阅读(107) 评论(0) 推荐(0) 编辑
摘要:win32 API using System; //using System.Drawing; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; namespace Transfe 阅读全文
posted @ 2022-09-14 09:44 水墨晨诗 阅读(230) 评论(0) 推荐(0) 编辑
摘要:public partial class Label4L1 : PictureBox { [Browsable(true), Description("鼠标悬浮,填充图片")] [Category("Appearance")] public Image HoverImage { get; set; 阅读全文
posted @ 2021-03-12 10:11 水墨晨诗 阅读(440) 评论(0) 推荐(0) 编辑
摘要:private void button1_Click(object sender, EventArgs e){ Timer timer1 = new Timer(); timer1.Interval = 1000; timer1.Enabled = truestyle="color: #000000 阅读全文
posted @ 2018-05-10 09:36 水墨晨诗 阅读(469) 评论(0) 推荐(0) 编辑
摘要:1、http://blog.csdn.net/yysyangyangyangshan/article/details/10515035 上面的这篇文章一共两段,第二段讲的是使用代码来安装发布这个WindowsService,如果不想使用代码来发布WindowsService的话可以不看。 1、打开c 阅读全文
posted @ 2017-12-04 14:15 水墨晨诗 阅读(145) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/linux7985/article/details/5698932 http://www.cnblogs.com/ocean2000/archive/2008/07/09/1238944.html http://blog.csdn.net/shyghost/ 阅读全文
posted @ 2017-10-12 15:19 水墨晨诗 阅读(395) 评论(0) 推荐(0) 编辑
摘要:一、右击类库 → 添加 → 新建项 → 应用程序配置文件(或者选择一个XML文件,然后将名字改成XXX.config),内容如下: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="cons 阅读全文
posted @ 2017-07-04 14:47 水墨晨诗 阅读(1886) 评论(0) 推荐(0) 编辑
摘要:步骤: 1)新建工程 2)在窗体上放置一个Label控件,命名为lblClock。并设置以下属性 this.lblClock.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblClock.Name = "lblCl 阅读全文
posted @ 2016-11-16 16:55 水墨晨诗 阅读(710) 评论(0) 推荐(1) 编辑