
winform
文章平均质量分 72
chocolateboy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c#显示隐藏的窗体和托盘中的程序
将程序最小化到托盘已经是最常用的操作,但在C#中凭借 Form1.Visible=true; 抑或是Form1.TopMost=true; 只能将窗体显示在任务栏中,而不能将窗体直接显示给用户,这无疑是糟糕的用户体验。为了实现上述目的,我们需要借助于win32函数: #region win32函数 [DllImport("user32.dll原创 2014-03-13 11:04:38 · 2943 阅读 · 0 评论 -
c#检查程序是否已经运行,如何防止多次运行同一个程序?
using System;using System.Collections.Generic;using System.Windows.Forms;using System.ServiceProcess;using System.Runtime.InteropServices;using System.Diagnostics;namespace ReplaceNamesp转载 2014-03-13 11:16:15 · 761 阅读 · 0 评论