• <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:在对话框外单击时关闭模式对话框

        Winforms: Close modal dialog when clicking outside the dialog(Winforms:在对话框外单击时关闭模式对话框)

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

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)

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

                          <legend id='2xMiZ'><style id='2xMiZ'><dir id='2xMiZ'><q id='2xMiZ'></q></dir></style></legend>
                          • <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'>

                              <tbody id='2xMiZ'></tbody>