Ada*_*son 14
protected override bool ShowWithoutActivation
{
get
{
return true;
}
}
Run Code Online (Sandbox Code Playgroud)
在表单代码中覆盖此属性,它应该为您完成.
小智 11
我花了几分钟时间使用Adam的&Aaron上面的信息,但我终于让它为我工作了.我必须做的一件事是确保表单的Top Most属性设置为false.这是我用过的代码......
protected override bool ShowWithoutActivation { get { return true; } }
protected override CreateParams CreateParams
{
get
{
//make sure Top Most property on form is set to false
//otherwise this doesn't work
int WS_EX_TOPMOST = 0x00000008;
CreateParams cp = base.CreateParams;
cp.ExStyle |= WS_EX_TOPMOST;
return cp;
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6788 次 |
最近记录: |