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();
}
}
我的問題是: 如果我沒有檢查任何複選框,我希望從窗體給我錯誤消息。它的正確代碼是什麼?我應該在哪裏對它?並且非常感謝您的關心。 form of windows application關於windows窗體複選框的問題
C#語言沒有任何複選框。也許你在談論Windows窗體複選框,或ASP.NET複選框,或WPF複選框,或Silverlight複選框或其他複選框? – 2011-06-01 18:54:36
是的,我正在談論Windows窗體checkBox!感謝你的關注! :) – 2011-06-02 18:28:26