Home > Net >  Online for a great god!!!!!!
Online for a great god!!!!!!

Time:11-22


Figure error of the two should be how to change?

Private void ExamScore ()
{
int sum=0;
If (this. RadioButton1. Checked) sum +=20;
If (this. RadioButton6. Checked) sum +=20;
If (this. RadioButton11. Checked) sum +=20;
If (this. RadioButton16. Checked) sum +=20;
If (this. RadioButton20. Checked) sum +=20; This. The timer1. Enabled=false; This. BtnGrade. Enabled=false; Enclosing TotalScore. Text=sum. The ToString ();
}

Private void btnGrade_Click (object sender, EventArgs e)
{
If (MessageBox. Show (this,
"Sure you want to papers? Yes, please click the 'sure \ n' button; Otherwise, please click on the 'cancel' button, ", "prompt",

MessageBoxButtons OKCancel, OKCancel MessageBox1con. Question)==DialogResult. OK) ExamScore ();
}

CodePudding user response:

 
MessageBox. Show (" the user name or password can't be empty ", "login", MessageBoxButtons. OKCancel, MessageBoxIcon. The Exclamation)

CodePudding user response:

If (MessageBox. Show (" determine their papers?" , "tip", MessageBoxButtons OKCancel, MessageBoxIcon. Information)==DialogResult. OK);

CodePudding user response:

OKCancel can not directly use, should be MessageBoxButtons OKCancel,

CodePudding user response:

If hit two okcancle
  •  Tags:  
  • C#
  • Related