Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto run method after form displays
Message
De
15/07/2004 14:40:51
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Auto run method after form displays
Divers
Thread ID:
00924850
Message ID:
00924850
Vues:
61
Hello,

I'm creating a WinForm that connects to a dataserver (for a legacy app), via a COM interop. The connection usually takes a few seconds.

The obvious is probably avoiding me here: I want the form to display first, then start the connection process, then enable the controls.

Tried to hook into Activated event, with appropriate checking to see if already connected. However, doing this just locks up the form.

I'll turn this into a status dialog form that goes away once the connection is made, once I understand how to run code after displaying a form.

Thanks,
Steve Gibson
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform