In my applet, some dialog boxes are set to pop up, and after clicking OK, the input value or character is processed. This is very simple to use: cxxdlg dlg (this); if (dlg.domodel () == idok) ............. I don't know how to get it. After studying MSDN, it is actually very simple. Join in Formxx: this.buttonok.dialogResult = OK; this.cancelButton = ButtonCancel; then when calling if (TestDialog.Showdialog (this) == DialogResult.ok) ... .......... You can!