private void validateUserEntry()
{ // Checks the value of the text. if(serverName.Text.Length == 0)
{ // Initializes the variables to pass to the MessageBox.Show method. string message = "You did not enter a server name. Cancel this operation?";
string caption = "Error Detected in Input";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result; // Displays the MessageBox. result = MessageBox.Show(message, caption, buttons); if(result == DialogResult.Yes)
{ // Closes the parent form. this.Close(); } }}
这种问题请先查一下帮助好吗?
{ // Checks the value of the text. if(serverName.Text.Length == 0)
{ // Initializes the variables to pass to the MessageBox.Show method. string message = "You did not enter a server name. Cancel this operation?";
string caption = "Error Detected in Input";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result; // Displays the MessageBox. result = MessageBox.Show(message, caption, buttons); if(result == DialogResult.Yes)
{ // Closes the parent form. this.Close(); } }}
这种问题请先查一下帮助好吗?
{ }
请问songle912(依然零分的我依然零分) ,confirm怎么写啊,帮助我看了thisXDocument.UI.<b>Confirm</b>("Do you wish to continue?", XdConfirmButtons.xdYesNo);这个好像是客户端脚本,怎么用也没看明白