<legend id='VKDZ9'><style id='VKDZ9'><dir id='VKDZ9'><q id='VKDZ9'></q></dir></style></legend>

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

      <small id='VKDZ9'></small><noframes id='VKDZ9'>

      • <bdo id='VKDZ9'></bdo><ul id='VKDZ9'></ul>

      1. Ϊʲôģ̬ÐÎʽÔÚ×îС»¯Ê±»áÍêÈ«Ïûʧ?

        ʱ¼ä£º2023-10-06

            <small id='ZEi86'></small><noframes id='ZEi86'>

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

              <tfoot id='ZEi86'></tfoot>
                • ±¾ÎĽéÉÜÁËΪʲôģ̬ÐÎʽÔÚ×îС»¯Ê±»áÍêÈ«Ïûʧ?µÄ´¦Àí·½·¨£¬¶Ô´ó¼Ò½â¾öÎÊÌâ¾ßÓÐÒ»¶¨µÄ²Î¿¼¼ÛÖµ£¬ÐèÒªµÄÅóÓÑÃÇÏÂÃæËæןú°æÍøµÄС±àÀ´Ò»Æðѧϰ°É£¡

                  ÎÊÌâÃèÊö

                  µ±Ä£Ì¬±íµ¥×îС»¯Ê±£¬ÎÒÊÔͼÈÃËùÓÐÕß±íµ¥×îС»¯.µ«Êǵ±ÎÒ×îС»¯Ä£Ì¬ÐÎʽʱ¡ª¡ªËüÍêÈ«ÏûʧÁË.(- ÎÒ¿ÉÒÔµã»÷ËùÓÐÕß±íµ¥.)

                  I'm trying to have the owner-form minimize when the modal-form is minimized. But when I minimize the modal-form ¨C it disappears completely. (- I can click on the owner-form.)

                  ÎÒ¸ÃÈçºÎ½â¾öÕâ¸öÎÊÌâ?

                  How do I solve this?

                  ÎÒÓÐ:

                  public partial class Form1 : Form
                  {
                      Form2 frm2 = new Form2();
                  
                      public Form1()
                      {
                          InitializeComponent();
                          frm2.Owner = this;
                      }
                  
                      private void button1_Click(object sender, EventArgs e)
                      {
                          frm2.ShowDialog();
                      }
                  }
                  

                  »¹ÓÐ:

                  class Form2 : Form
                  {
                      Form1 frm1;
                      FormWindowState ws = new FormWindowState();
                  
                      public Form2()
                      {
                          SizeChanged += new EventHandler(Form2_SizeChanged);
                      }
                  
                      void Form2_SizeChanged(object sender, EventArgs e)
                      {
                          frm1 = (Form1)Owner;
                          if (WindowState == FormWindowState.Minimized) 
                          { 
                              ws = frm1.WindowState; 
                              frm1.WindowState = FormWindowState.Minimized; 
                          }
                          else frm1.WindowState = ws;
                      }
                  
                  }
                  

                  (ÔÚ³¢ÊÔÕâ¸öʱ£¬ÎÒÒ²Óöµ½ÁËÕâ¸ö:ģ̬±íµ¥Ö»ÓÐÔÚ×îС»¯ºÍËùÓÐÕß±íµ¥±»µã»÷Ò»´Îºó²Å»á³öÏÖÔÚÍÐÅÌÖÐ.ÈçºÎÈÃËü³öÏÖ?)

                  (While trying this, I also ran into this: Modal form doesn't appear in tray until minimized and owner-form is clicked once. How do I make it appear? )

                  ÍƼö´ð°¸

                  Ìí¼Ó:

                  Show();
                  

                  ÔÚ Form2 µÄʼþ´¦Àí³ÌÐòµÄĩβ.

                  At the end of Form2's event-handler.

                  Õâƪ¹ØÓÚΪʲôģ̬ÐÎʽÔÚ×îС»¯Ê±»áÍêÈ«Ïûʧ?µÄÎÄÕ¾ͽéÉܵ½ÕâÁË£¬Ï£ÍûÎÒÃÇÍƼöµÄ´ð°¸¶Ô´ó¼ÒÓÐËù°ïÖú£¬Ò²Ï£Íû´ó¼Ò¶à¶àÖ§³Ö¸ú°æÍø£¡

                  ÉÏһƪ£ºÈçºÎÖÆ×÷ jQuery ¶Ô»°¿òģʽ? ÏÂһƪ£ºÒýµ¼Ä£Ê½ÄÚµÄ ASP.NET °´Å¥Î´´¥·¢µ¥»÷ʼþ

                  Ïà¹ØÎÄÕÂ

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

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

                  1. <legend id='Mocft'><style id='Mocft'><dir id='Mocft'><q id='Mocft'></q></dir></style></legend>
                    <tfoot id='Mocft'></tfoot>

                    • <bdo id='Mocft'></bdo><ul id='Mocft'></ul>