title: How to disable all on the forms except for the panel
body: <p>I would like to disable all except for the panel shown below</p>
  
  <p><a href="https://i.stack.imgur.com/hL1EG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hL1EG.jpg" alt="enter image description here"></a></p>
  
  <p>The triggering of this panel is when i clicked edit button on my datagridview and the panel would be visible.. So basically the panel is not visible in default (here is the code below of the edit button in the datagrid)</p>
  
  <pre><code>    private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
      {
          var senderGrid = (DataGridView)sender;
  
          if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn &amp;&amp;
              e.RowIndex &gt;= 0)
          {
  
              panel1.Visible = true;
              selectedItenOutputOrderTabGrid.Rows.RemoveAt(selectedItenOutputOrderTabGrid.CurrentRow.Index);
  
                // HERE I WANT TO ADD A FUNCTION THAT WOULD DISABLE ALL IN THE FORM EXCEPT THE PANEL
          }
  
      }
  </code></pre>