• <small id='MZIKR'></small><noframes id='MZIKR'>

    <tfoot id='MZIKR'></tfoot>
      <bdo id='MZIKR'></bdo><ul id='MZIKR'></ul>

      1. <legend id='MZIKR'><style id='MZIKR'><dir id='MZIKR'><q id='MZIKR'></q></dir></style></legend>
        <i id='MZIKR'><tr id='MZIKR'><dt id='MZIKR'><q id='MZIKR'><span id='MZIKR'><b id='MZIKR'><form id='MZIKR'><ins id='MZIKR'></ins><ul id='MZIKR'></ul><sub id='MZIKR'></sub></form><legend id='MZIKR'></legend><bdo id='MZIKR'><pre id='MZIKR'><center id='MZIKR'></center></pre></bdo></b><th id='MZIKR'></th></span></q></dt></tr></i><div id='MZIKR'><tfoot id='MZIKR'></tfoot><dl id='MZIKR'><fieldset id='MZIKR'></fieldset></dl></div>

        Winforms:在对话框外单击时关闭模式对话框

        时间:2023-10-05

          <i id='31G0j'><tr id='31G0j'><dt id='31G0j'><q id='31G0j'><span id='31G0j'><b id='31G0j'><form id='31G0j'><ins id='31G0j'></ins><ul id='31G0j'></ul><sub id='31G0j'></sub></form><legend id='31G0j'></legend><bdo id='31G0j'><pre id='31G0j'><center id='31G0j'></center></pre></bdo></b><th id='31G0j'></th></span></q></dt></tr></i><div id='31G0j'><tfoot id='31G0j'></tfoot><dl id='31G0j'><fieldset id='31G0j'></fieldset></dl></div>

                <small id='31G0j'></small><noframes id='31G0j'>

                <tfoot id='31G0j'></tfoot>
              1. <legend id='31G0j'><style id='31G0j'><dir id='31G0j'><q id='31G0j'></q></dir></style></legend>
                  <tbody id='31G0j'></tbody>
                • <bdo id='31G0j'></bdo><ul id='31G0j'></ul>

                  本文介绍了Winforms:在对话框外单击时关闭模式对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个打开的模态对话框(Windows 窗体).我想要,在对话框外部(在父窗体上)单击时关闭对话框.我该怎么做?

                  I have an open modal dialog (Windows Forms). I want, that the dialog is closed when clicking outside the dialog (on the parent form). How can I do that?

                  推荐答案

                  你应该把它改成非模态对话框(用 Show(..) 打开它)然后使用 停用事件并关闭它.

                  You should change it to a non-modal dialog (open it with Show(..)) and then use the Deactivate event and close it.

                  这篇关于Winforms:在对话框外单击时关闭模式对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:WinForms 编程 - 模态和非模态表单问题 下一篇:ASP.NET 中模式弹出窗口的最佳选择?

                  相关文章

                        <bdo id='2xMiZ'></bdo><ul id='2xMiZ'></ul>

                      <legend id='2xMiZ'><style id='2xMiZ'><dir id='2xMiZ'><q id='2xMiZ'></q></dir></style></legend>
                    1. <i id='2xMiZ'><tr id='2xMiZ'><dt id='2xMiZ'><q id='2xMiZ'><span id='2xMiZ'><b id='2xMiZ'><form id='2xMiZ'><ins id='2xMiZ'></ins><ul id='2xMiZ'></ul><sub id='2xMiZ'></sub></form><legend id='2xMiZ'></legend><bdo id='2xMiZ'><pre id='2xMiZ'><center id='2xMiZ'></center></pre></bdo></b><th id='2xMiZ'></th></span></q></dt></tr></i><div id='2xMiZ'><tfoot id='2xMiZ'></tfoot><dl id='2xMiZ'><fieldset id='2xMiZ'></fieldset></dl></div>
                      <tfoot id='2xMiZ'></tfoot>

                      <small id='2xMiZ'></small><noframes id='2xMiZ'>