Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShowModal Form not responding
Message
From
19/05/2006 13:09:51
 
 
To
19/05/2006 08:47:38
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01123528
Message ID:
01123622
Views:
23
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform