天天看点

c#窗体showdialog如何回传ok

button有属性 DialogResult

将“确定”钮设为 "OK" 

取消”钮设为"Cancel"就好