General information
Category:
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only