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.