Information générale
Catégorie:
The Mere Mortals .NET Framework
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement