Keep Window Inactive In Appearance Even When Activated

后端 未结 3 1741
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-15 02:00

Is there a way to keep a window inactive looking, even if it contains focus? I have two forms (A and B). After the user interacts with A, I transfer focus back to B. The

3条回答
  •  孤城傲影
    2020-12-15 03:01

    Not sure if this helps, but Winforms supports the concept of owned forms. For instance, even though floating toolbars live outside a top-level window, they remain active even when the top-level window is active (and vice versa). Likewise, you want the user to be able to interact with your form A, without deactivating form B.

    To achieve this, it sounds like you need to call b.AddOwnedForm(a) just before you show a.

提交回复
热议问题