Jerry Nixon
Jerry Nixon

Reputation: 31813

WPF - When application Loads, do not steal Focus from any another application

I have a simple WPF application. When it loads and I am typing in any other application (like Word or IM), my WPF app steals the focus - screwing up my typing, of course. Now, this is the very behavior I find annoying in other applications. How can I prevent this behavior?

Thank you.

Upvotes: 3

Views: 356

Answers (1)

dlev
dlev

Reputation: 48596

Setting ShowActivated = false on your window prior to calling Show() should accomplish what you want.

Upvotes: 3

Related Questions