关于隐藏任务栏
1 把
public Form1()
{
InitializeComponent();
this.FormBorderStyle = FormBorderStyle.None;
// this.TopMost = true;
}
可以实现我要得,隐藏任务栏
2 在页面中加个button
把上面得 this.FormBorderStyle = FormBorderStyle.None;
注销掉
在
onclick 中加
this.FormBorderStyle = FormBorderStyle.None;
点击后
不会实行慢屏.任务栏也还在
------解决方案--------------------幫頂﹗我也 不曉的,學習一下﹗
------解决方案--------------------ding
------解决方案--------------------Refresh()试试~
------解决方案--------------------在我这可以(OS Win 2003 VS2005)
------解决方案--------------------Suppose you want to remove the TitleBar or change the border style to prevent users from resizing your form. Unfortunately, VB only allows you to do this at design time. However, your form is just a window and the characteristics of a window are dictated by attributes called style and extended style bits.
http://www.thescarms.com/VBasic/windowstyle.asp
------解决方案--------------------帮顶一下
------解决方案--------------------U P
------解决方案--------------------try..
private void button2_Click(object sender, EventArgs e)
{
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
}
即先BorderStyle设为None,后全屏..
顺序不要反了..
------解决方案--------------------我的系统也是VS2005+WinXp..
------解决方案--------------------this.WindowState = FormWindowState.Maximized;
得有这句!
------解决方案--------------------奇怪...
我这样测试是没有问题的..
private void button2_Click(object sender, EventArgs e)
{
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
}
------解决方案--------------------我利用这个方法测试的时候,有点停滞,即先没有覆盖任务栏,但是大约一秒钟后,完全覆盖...
------解决方案--------------------奇怪,我这样用:
this.WindowState = FormWindowState.Normal;
this.WindowState = FormWindowState.Maximized;
反而不能覆盖任务栏...
------解决方案--------------------load把Explorer.exe杀了。。程序onclose再启动