01.
private
void
ShowOptionsForm()
02.
{
03.
dynamic options =
new
frmOptions();
04.
05.
// Did the user click Save?
06.
if
(options.ShowDialog() == Windows.Forms.DialogResult.OK) {
07.
// Yes, so grab the values you want from the dialog here
08.
string
textBoxValue = options.txtMyTextValue.Text;
09.
}
10.
1.
public
class
frmOptions
2.
3.
btnSave_Click(
object
sender, EventArgs e)
4.
5.
// Set the result to pass back to the form that called this dialog
6.
this
.DialogResult = Windows.Forms.DialogResult.OK;
7.
8.
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง