Visual Basic Common Dialog Cancel - TechRepublic
General discussion
January 18, 2006 at 01:03 PM
pokimaniac250

Visual Basic Common Dialog Cancel

by pokimaniac250 . Updated 20 years, 5 months ago

I am working on a school project using Visual Basic 6 to make a copy of Windows XP Notepad. I’m working on the functionality of the Save/Save As menu items and am using the Visual Basic Common Dialog to set Save parameters. I use the CommonDialog.ShowSave to bring up the dialog, but whether I hit Save or Cancel during program execution, the next statement is executed saving the program. I need the dialog to return something saying that the user hit cancel, but I can’t figure out which property it is. I would think it is the CommonDialog.CancelError, but that always returns False (or True if it was set to True previous to showing the dialog). Any Suggestions?

This discussion is locked

All Comments