سلام
من چند فیلد دارم همراه با یک دکمه که با کلیک بروی ان اطلاعات ذخیره میشود
حال می خواهم وقتی روی دکمه کلیک کردم قبل از ذخیره کردن یک فرمی باز بشه که حالت yes , no داشته باشه و که باکلیک بروی yes اطلاعات ذخیره شود
Dim result As VbMsgBoxResult
result = MsgBox("Do you want to save changes?", vbDefaultButton1 Or vbInformation Or vbYesNo)
If (result = vbYes) Then
.
.
.
End If
DialogResult result;
result = MessageBox.Show("Do you want to save changes?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
if (result == DialogResult.Yes)
{
.
.
.
}