Hi Bill,
Looks like it's getting confused somewhere. What looks fishy to me is the combination of these three things:
creating the dialog with a parameter (this.opOptions)
using a parameter in the .ShowDialog() method
and setting this.opOptions again.
I'm not sure, but it seems something is either redundant, or cyclic or something. You may need to re-think the design of this dialog.
~~Bonnie
>I have something unusual happening with a Winform that is shown as a modal form. When the form is launched the first time from a menu option it performs properly as expected. If the form is then closed and re-launched from the menu option, the first control that is clicked is the only one that will respond on the form. All other controls will not respond and will not gain focus. The only thing that can be done is close the form using the Winform close button (X). Following is the code that launches the form:
>/**************************************************************/
>private void optOptions_Click(object sender, System.EventArgs e)
>/**************************************************************/
>{
> Options frmOptions = new Options(this.opOptions);
>
> if (frmOptions.ShowDialog(this) == DialogResult.OK)
> {
> this.opOptions = frmOptions.opOptions;
> }
>
> frmOptions.Dispose();
>}
>
>What am I missing that is causing this form's behavior?
>
>Thanks,
>Bill