P
Paul K
I'm designing some forms in C#, and I'm having a problem
reading the DialogResult property of a dialog. Here's
the code I use to create a new instance of the dialog:
mUserMaint = new formUserMaint();
mUserMaint.InitForm(false,mUser);
if (mUserMaint.ShowDialog(formMain.ActiveForm) ==
DialogResult.OK)
{
mUser = mUserMaint.UpdatedUser;
UpdateForm(false);
}
mUserMaint.Dispose();
Here is the code from the "submit" button on
formUserMaint:
private void btnSave_Click(object sender,
System.EventArgs e)
{
try
{
Some processing here...
this.DialogResult = DialogResult.OK;
}
Exception processing here...
}
Does anyone have any idea I am doing incorrectly? Thanks!
reading the DialogResult property of a dialog. Here's
the code I use to create a new instance of the dialog:
mUserMaint = new formUserMaint();
mUserMaint.InitForm(false,mUser);
if (mUserMaint.ShowDialog(formMain.ActiveForm) ==
DialogResult.OK)
{
mUser = mUserMaint.UpdatedUser;
UpdateForm(false);
}
mUserMaint.Dispose();
Here is the code from the "submit" button on
formUserMaint:
private void btnSave_Click(object sender,
System.EventArgs e)
{
try
{
Some processing here...
this.DialogResult = DialogResult.OK;
}
Exception processing here...
}
Does anyone have any idea I am doing incorrectly? Thanks!