这样就不会使窗体在显示的时候有焦点了:
protected override bool ShowWithoutActivation
{
get
{
return true;
}
}
protected override bool ShowWithoutActivation
{
get
{
return true;
}
}
本文介绍了一种方法,可以在不获取焦点的情况下显示窗体。通过重写 `ShowWithoutActivation` 方法并返回 `true`,使得窗体在显示时不会激活,即不会成为当前活动窗口。

被折叠的 条评论
为什么被折叠?