急救 各位弟兄多多帮忙,兄弟先行谢过! 我要实现的功能是当程序最小化到窗体右下角时,鼠标左键单击时,弹出窗体,并且处于活动状态,也就是出现在所有窗体的前面,但是鼠标点击其它窗体,我的窗体不可见,就是不是窗体的NotifyIcon=true;如果窗体已经在桌面上,但是在其它窗体的下面,当鼠标左键单击时,也会出现在此其它窗体的前面.谢谢各位弟兄帮忙啊,分不多,解决马上结帖,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你说的关系我有点糊涂了。不过你说的问题,大概都可以通过form.Activateform.TopMost = true;来解决。 to:phy不能用form.TopMost = true;因为用了这个属性,点击其它窗体时,我程序的窗体也在最上面,我要实现的是,点击其它窗体时,我窗体不可见. 还有我下面这二段代码,去掉第二段时,为什么用鼠标左键单击,却不能弹出窗体,谢谢各位帮兄弟看看,指点指点. private void notifyIcon1_Click(object sender, EventArgs e) { this.Visible = true; this.Activate(); this.WindowState = FormWindowState.Normal; } private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e) { this.Visible = true; this.Activate(); this.WindowState = FormWindowState.Normal; } 线程同步问题 影响界面的问题 如何在在winform中让一个button的text为&? KMPlayer开源软件 Attributes 新窗口中打开页面不管用 小弟才接触.net对联动不是很熟悉,使用XML做数据源的联动。无法给dropdownlist赋值! 求济南C#兼职开发人员 关于设计浏览器控件问题 如何在一个解决方案的几个web项目中共享session 我新建一个C# WindowsApplication,然后什么也不干就F5,发现程序占用15M内存 在WinForm中如何设置datagridview某单元格的Enabled=false 请问 这个 分数 在哪里可以看到
form.Activate
form.TopMost = true;
来解决。
不能用form.TopMost = true;因为用了这个属性,点击其它窗体时,我程序的窗体也在最上面,我要实现的是,点击其它窗体时,我窗体不可见.
private void notifyIcon1_Click(object sender, EventArgs e)
{
this.Visible = true;
this.Activate();
this.WindowState = FormWindowState.Normal;
} private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Visible = true;
this.Activate();
this.WindowState = FormWindowState.Normal; }