![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Winform
zhishiheng
这个作者很懒,什么都没留下…
展开
-
Winform-TextBox实现 placeholder
代码 public class TextBoxEx : TextBox { public String PlaceHolderStr { get; set; } protected override void WndProc(ref Message m) { base.WndProc(ref m); ...原创 2018-12-06 09:58:51 · 7208 阅读 · 2 评论 -
Winform-无边框窗体实现拖动
#region 实现拖动 private Point mousePoint = new Point(); private void FrmLogin_MouseDown(object sender, MouseEventArgs e) { this.mousePoint.X = e.X; ...原创 2018-12-06 10:04:58 · 2322 阅读 · 2 评论 -
Winform-窗体实现圆角
#region 实现圆角 private void FrmLogin_Resize(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Normal) { SetWindowRegi...转载 2018-12-06 10:07:01 · 2213 阅读 · 1 评论 -
Winform四边阴影
1、第一种实现方式public partial class Form1 : Form{ [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] private static extern IntPtr CreateRoundRectRgn ( int nLeftRect, // x-co...原创 2018-12-26 14:39:29 · 1272 阅读 · 1 评论 -
c#程序以管理员身份运行
1、添加app.manifestvs2010中,项目右键属性--安全性---启用ClickOnce安全设置 然后程序目录下会生成一个app.manifest文件 <requestedExecutionLevel level="asInvoker" uiAccess="false" /> 改为 <requestedExecutionLevel level...原创 2019-01-15 16:23:38 · 1703 阅读 · 0 评论