Why does ShowDialog always return DialogResult.Cancel?
问题 I have a custom made dialog winform. On it I have a label, textbox and 2 buttons (OK and Cancel). It also declares and defines overloaded execute methods for passing different parameter list. Dialog Winform is called as follows: var theDialog := new InputMsgBox; if theInputB.Execute('Awesome StackOverflow','Enter Text?',s,var s) = DialogResult.OK then begin Invalidate; SetText(s); end; Dialog Winform execute is defined as follow: method InputMsgBox.Execute(Title, theMessage, defaultanswer