怎么让我的程序不在任务栏中显示 ,还有进程控制里面
我的代码如下:
[DllImport( "user32.dll ", EntryPoint = "GetWindow ")]
public static extern int GetWindow(int hwnd,int wCmd);
[DllImport( "user32.dll ", EntryPoint = "ShowWindow ")]
public static extern int ShowWindow(int hwnd,int nCmdShow);
private void Form1_Load(object sender, EventArgs e)
{
this.Visible = false;
int OwnerhWnd,rc;
OwnerhWnd = GetWindow((int)this.Handle,4);
rc = MonitorFolder.Form1.ShowWindow(OwnerhWnd, 5);
}
开发环境 window xp pro sp2
c# vs2005
------解决方案-------------------- 将窗体的ShowInTaskBar属性设置为false就不在任务栏中显示了...
------解决方案--------------------调用SetWindowLong这个函数
ref:
http://book.77169.org/ask26/how181245.htm
------解决方案--------------------Just up
------解决方案--------------------路过
顶
------解决方案--------------------能用.Net解决的尽量用...
不过关于进程的这里也在讨论...
ref: http://community.csdn.net/Expert/topic/5632/5632964.xml?temp=.3223383
------解决方案--------------------up