Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShowModal Form not responding
Message
De
22/05/2006 08:33:39
 
 
À
19/05/2006 13:09:51
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01123528
Message ID:
01123904
Vues:
20
Hey Bonnie,

This is interesting, thanks. I would not have thought this would have been an issue here. Creating the dialog with a parameter was just for the purpose of passing an object containing the options to the form for use. The "this" parameter in the .ShowDialog() method was just to declare an owner of the dialog. And the assignment statement in the if{} statement was just to reassign the options to the master options object.

Nevertheless, I reconfigured the dialog methodology and it seems to be working properly now. I'll keep an eye on it and I will have to think about this some more as I still do not really know exactly what was causing the problem. Most of my time is spent in ASP.NET and have only limited experience in .NET Win forms at this point so I'm still navigating the learning curve there.

Bill

>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
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform