James.
>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?
You can determine if the user clicked Cancel because no value is stored back into txtFileName.Text. Unforunately, Microsoft's OpenFileDialog (which we're using behind the scenes) does not give you access to the Click event of these buttons, so there's no way you can create handlers for them.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com