使用NotifyIcon控件遇到的问题 不要用THIS呀。某些地方不要用呀。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void menuItem2_Click(object sender, System.EventArgs e){ Application.Exit ();}private void menuItem1_Click(object sender, System.EventArgs e){ this.Visible =true; this.notifyIcon1.Visible=false; this.WindowState=System.Windows .Forms .FormWindowState .Normal; this.ShowInTaskbar=true; this.Width=300; this.Height =300; this.SetDesktopLocation (145,110);}private void notifyIcon1_DoubleClick(object sender, System.EventArgs e){menuItem1_Click(sender,e);}private void Form1_Resize(object sender, System.EventArgs e){ if(this.WindowState==System.Windows .Forms .FormWindowState .Minimized ) { this.Visible =false; this.ShowInTaskbar =false; this.notifyIcon1.Visible =true; }}你这样试试,应该可以的,因为你要理解这些界面的显示顺序和过程,呵呵,我也不是很明白,你可以在一些地方加上MessageBox.show(this.Location.X.toStirng()+this.Location.Y+"|"+this.Width+this.Height);看一下它的变化过程,明白/? 奇怪啊,我用了tavor(龙双公子)的办法,遇到一个大家都想不到的问题,窗口是出现了,但是窗口上的控件除了一个BUTTON(因为它FOCUS())外,其他的都没有了,怎么回事呢,变态啊, 大师帮帮小弟吧 Winform RDLC传参求教。。 求一小段XAML,400×200的窗口,有一个tab控件,不显示header,tabItem的背景图片能填充整个窗口 我该用哪个设计模式? GridView 请指教 GridView显示图片 问个小问题 珠海一套100W元人民币的FPC柔性线路板厂的ERP系统 我的vs怎么不能新建项目了?? 求助! 请介绍几个跟数据库有关的文章,网站,电子数,例子 怎样做电子签名控件,可行解决方案给200分
{
Application.Exit ();
}private void menuItem1_Click(object sender, System.EventArgs e)
{
this.Visible =true;
this.notifyIcon1.Visible=false; this.WindowState=System.Windows .Forms .FormWindowState .Normal;
this.ShowInTaskbar=true;
this.Width=300;
this.Height =300;
this.SetDesktopLocation (145,110);
}private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
menuItem1_Click(sender,e);
}private void Form1_Resize(object sender, System.EventArgs e)
{
if(this.WindowState==System.Windows .Forms .FormWindowState .Minimized )
{
this.Visible =false;
this.ShowInTaskbar =false;
this.notifyIcon1.Visible =true;
}
}
你这样试试,应该可以的,因为你要理解这些界面的显示顺序和过程,呵呵,我也不是很明白,你可以在一些地方加上MessageBox.show(this.Location.X.toStirng()+this.Location.Y+"|"+this.Width+this.Height);
看一下它的变化过程,明白/?