简体   繁体   中英

How to load a form but without stealing focus?

When my C# app runs I want it to start minimized and to show on the taskbar but without stealing the focus from the current app (to load in background).

I tried this but it doesn't work in Windows 10:

protected override bool ShowWithoutActivation
{
    get { return true; }
}

Any advice?

设置窗体的WindowState = Minimized应该足够了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM