Senin, 24 Juni 2024

Common Dialog Control In Visual Basic Classic

These are Common Dialog Control Properties and Method:

Dialogue Box
Purpose/Property
Method
Colour
The Color property is used to determine which colour was selected.
ShowColor
Font
to display a list of fonts that are available.
ShowFont
Open
to display the dialog to open files.
ShowOpen
Print
to display the dialog to print files.
ShowPrinter
Save As
to display the dialog to save files.
The FileName property is used to determine file name specified by the user.
ShowSave

Open And Save As Dialogue Box

CommonDialog1.Filter = "Bitmaps (*.BMP)|*.BMP"
'== Bitmaps (*.BMP) is display to user
'== *.BMP to filter the format file extension
CommonDialog1.DefaultExt = "BMP"
CommonDialog1.FileName
CommonDialog1.ShowOpen
CommonDialog1.ShowSave
CommonDialog1.InitDir

Colour Dialogue Box

CommonDialog1.Flags = &H1&
CommonDialog1.Color
CommonDialog1.ShowColor

Font Dialogue Box

CommonDialog1.FontBold
CommonDialog1.FontItalic
CommonDialog1.FontName
CommonDialog1.FontSize
CommonDialog1.FontStrikethru
CommonDialog1.FontUnderLine
CommonDialog1.ShowFont

Print Dialogue Box

CommonDialog1.CancelError = True '== Err.Number = 32755
CommonDialog1.ShowPrinter

commondialog, commondialogue, component

Related Post

Tidak ada komentar:

Posting Komentar