title: question about windows forms checkbox
body: <pre><code>private void frmSearch_Load(object sender, EventArgs e)
  {
      // TODO: This line of code loads data into the 'bookdatabaseDataSet.Dist_Year' table. You can move, or remove it, as needed.
      this.dist_YearTableAdapter.Fill(this.bookdatabaseDataSet.Dist_Year);
      // TODO: This line of code loads data into the 'bookdatabaseDataSet.Dist_Auth' table. You can move, or remove it, as needed.
      this.dist_AuthTableAdapter.Fill(this.bookdatabaseDataSet.Dist_Auth);
      // TODO: This line of code loads data into the 'bookdatabaseDataSet.Book' table. You can move, or remove it, as needed.
      this.bookTableAdapter.Fill(this.bookdatabaseDataSet.Book);
  }
  
  private void button1_Click(object sender, EventArgs e)
  {
      Form f4 = new Confirm();
      f4.Show();
      Hide();
  }
  
  private void button2_Click(object sender, EventArgs e)
  {
      if (MessageBox.Show("Are you sure you want to Exit?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
      {
          Application.Exit();
      }   
  }
  </code></pre>
  
  <p>my question is:
  I want from the form to give me error message if I didn't check any of the check boxes. what is the correct code for it? and where should I right it? and thanks a lot for your concern.
  <a href="http://i.stack.imgur.com/1Q4Jo.png" rel="nofollow">form of windows application</a> </p>