日期:2014-05-18 浏览次数:20790 次
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = true;
------解决方案--------------------
1 this.FormBorderStyle = FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
2 NotifyIcon _NotifyIcon = new NotifyIcon();
_NotifyIcon.Icon = this.Icon;
_NotifyIcon.Visible = true;
3 System.Diagnostics.Process.Start("http://www.zz.ha.cn");
System.Diagnostics.Process[] _ProcessList = System.Diagnostics.Process.GetProcessesByName("IEXPLORE");
for (int i = 0; i != _ProcessList.Length; i++)
{
MessageBox.Show(_ProcessList[i].MainWindowTitle);
//判断
//_ProcessList[i].Kill(); //关闭窗体
}