Computer Science Canada [Tutorial] Common Dialogs |
Author: | diqua [ Tue Oct 25, 2005 9:21 pm ] | ||||
Post subject: | [Tutorial] Common Dialogs | ||||
Since i found it a real pain finding out how Common Dialogs work im going to try and explain what ive learned In VB common dialogs are used to show common looking screens through out the whole program to keep with the windows feel. The Common Dialogs are the windows such as the Open/Save dialog, the Printing Dialog, as well as the Color and Font select dialogs. To use common dialogs you must add the control to the form, but first you have to add it to the tool box by right clicking on the tool box and selecting components. After that select "Microsoft Common Dialog Control 6.0" and it should add it. for use in my examples the common dialog control will be called cdlTest to open the dialogs you use the following code
Some basic Properties: Color returns the color code of the color chosen through the Color Select Dialog FileName returns or sets the path and filename of a selected file in the Save/Open Dialog InitDir returns or sets the starting directory for a Save/Open Dialog Example:
Any Questions feel free to message me Diqua |
Author: | Tony [ Wed Oct 26, 2005 9:34 am ] |
Post subject: | |
that could be useful, thx +Bits |