会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
相会
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
10
下一页
2017年3月21日
激活程序进程并显示最前
摘要: private const int SW_SHOWNOMAL = 1; /// /// 该函数设置由不同线程产生的窗口的显示状态 /// /// 窗口句柄 /// 指定窗口如何显示。查看允许值列表,请查阅ShowWlndow函数的说明部分 /// 如果函数原来可见,返回值为非零;如果函数原来被隐...
阅读全文
posted @ 2017-03-21 11:07 hi.....
阅读(885)
评论(0)
推荐(0)
2017年3月17日
ClickOnce 部署 API 以编程方式检查应用程序更新
摘要: https://msdn.microsoft.com/zh-cn/library/ms404263(v=VS.90).aspx http://www.cnblogs.com/weixing/p/3358740.html
阅读全文
posted @ 2017-03-17 17:15 hi.....
阅读(583)
评论(0)
推荐(0)
2017年3月16日
管理员权限运行
摘要: 1)app.mainfest文件中 2)在App.cs中增加以下代码: 3)重写 OnStartup 函数 4)保存,重新生成,发布 加入上面的代码之后,重新使用ClickOnce方式发布
阅读全文
posted @ 2017-03-16 17:09 hi.....
阅读(1106)
评论(0)
推荐(0)
扩展支持全选的CheckBox列。
摘要: 扩展支持全选的CheckBox列。 https://www.codeproject.com/articles/42437/toggling-the-states-of-all-checkboxes-inside-a-dat
阅读全文
posted @ 2017-03-16 14:38 hi.....
阅读(156)
评论(0)
推荐(0)
2017年3月15日
转 winfrom组件圆角
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using Syste...
阅读全文
posted @ 2017-03-15 10:11 hi.....
阅读(244)
评论(0)
推荐(0)
2017年3月14日
转 无边框四周阴影
摘要: public partial class Form1 : Form { [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] private static extern IntPtr CreateRoundRectRgn ( int nLeftRect, // x-coordinate of...
阅读全文
posted @ 2017-03-14 17:28 hi.....
阅读(630)
评论(0)
推荐(0)
转 实现类似QQ的窗体停靠
摘要: [DllImport("User32.dll")] public static extern bool PtInRect(ref Rectangle Rects, Point lpPoint); private void timerShowHide_Tick(object sender, EventArgs e) { if...
阅读全文
posted @ 2017-03-14 17:05 hi.....
阅读(199)
评论(0)
推荐(0)
2017年2月28日
关闭ShowDialog的模态窗口
摘要: [DllImport("user32.dll")] private static extern IntPtr FindWindow(string a, string b); [DllImport("user32.dll")] private static extern IntPtr PostMessage(IntPtr hWnd, int ms...
阅读全文
posted @ 2017-02-28 10:24 hi.....
阅读(491)
评论(0)
推荐(0)
2017年2月27日
TextBox 显示横线
摘要: public class Xtxt3 : TextBox { private bool m_underLine; public bool UnderLine { get { return m_underLine; } set { if...
阅读全文
posted @ 2017-02-27 15:00 hi.....
阅读(308)
评论(0)
推荐(0)
2017年2月24日
转 无损转换Image为Icon
摘要: 不可取 var handle = bmp.GetHicon(); //得到图标句柄return Icon.FromHandle(handle); //通过句柄得到图标 可取
阅读全文
posted @ 2017-02-24 09:58 hi.....
阅读(281)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
下一页
公告