Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Click event for mmOpenFileDialog controls
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01175018
Message ID:
01186338
Vues:
35
Kevin,
I thought I had this worked out but I'm running into a wall again and I guess I need a better explanation for how this control works.

Ok, here's my problem. I have a mmOpenFileDialog control on a form. When the user clicks it and the file dialog comes up how do I tell if the user clicks the Open or Cancel button?

I don't understand what you mean about creating a subclass of the control. I dragged the control from the toolbox directly onto the form. Is this not the best way to do it?

The last time I used this control (which prompted my first message) I wanted to display the default path and file name in the text box part of the control. I ended up doing that by using the Controls collection...
mmdiagFilePath.Controls(0).Text

But now I need to determine what the user did. Did he click the Save button or the Cancel button on the file dialog. How do I get access to the click events for those buttons?

Thanks,
James
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform