Gong Solutions Logo

Creating a Simple File Dialog

This tutorial will guide you through creating a simple custom file dialog in Visual Studio 2005 using the Gong Solutions Shell Library.

Step 1: Create a new project

Create a new Windows Application in Visual Studio and add a reference to the Gong Solutions Shell Library to your project. For more details, click here.

Step 2: Add some controls

You form should look like this:


Step 3: Link the Controls

Set the ShellView property of the FileDialogToolbar to reference the ShellView control on the form.

Step 4: Run the Program

Press F5 to run the program, and you will be able to browse your computer's files from your newly created application, as simple as that!

Step 5: Add a File Name Text Box and a File Filter List

You form should now look something like this:


Step 6: Run the Program

Press F5 to run the program again. You will now be able to navigate folders by typing their name into the FileNameComboBox and filter the items in the ShellView using the FileFilterComboBox . The FileNameComboBox will even autocomplete filenames as you type!

Step 7: Add the Open button

That's All For Now

You've come to the end of this tutorial. If you want to learn more, then take a look at the FileDialog example that comes with the Gong Solutions Shell Library.