Open File Dialog: A visual basic Open File Dialog control allow you to select a file to be opened. Open File Dialog's are Provided by Open FileDialog class. If you want to make visible any DialogBox at Runtime you will use the ShowDialog method of the DialogBox. If you are using OpenFileDialog control you have to set some properties like DefaultExt to set the default extension of the file, InitialDirectory to any drive(C,D,E) which should open when you use this control and RestoreDirectory to true. SaveFileDialog: A visual basic SaveFileDialog control is used to save a file in a specified location. This control is supported by the SaveFileDialog class. The properties of SaveFileDialog is same as the OpenFileDialog except the one notable property that is OverWritePrompt which shows a warning if you select to a name that is already exist. Properties of OpenFileDialog and SaveFileDialog control:-
Output:-