home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmdialog
- Caption = "Form1"
- ClientHeight = 6030
- ClientLeft = 1095
- ClientTop = 1515
- ClientWidth = 6720
- Height = 6435
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 6030
- ScaleWidth = 6720
- Top = 1170
- Width = 6840
- Begin VB.CommandButton cmdcolor
- Caption = "&Color"
- Height = 495
- Left = 120
- TabIndex = 5
- Top = 4260
- Width = 1215
- End
- Begin VB.CommandButton cmdhelp
- Caption = "&Help"
- Height = 495
- Left = 5400
- TabIndex = 4
- Top = 3660
- Width = 1215
- End
- Begin VB.CommandButton cmdprint
- Caption = "&Print"
- Height = 495
- Left = 4080
- TabIndex = 3
- Top = 3660
- Width = 1215
- End
- Begin VB.CommandButton cmdfonts
- Caption = "&Fonts"
- Height = 495
- Left = 2760
- TabIndex = 2
- Top = 3660
- Width = 1215
- End
- Begin VB.CommandButton Cmdsave
- Caption = "&Save As"
- Height = 495
- Left = 1440
- TabIndex = 1
- Top = 3660
- Width = 1215
- End
- Begin VB.CommandButton cmdopen
- Caption = "&File Open"
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 3660
- Width = 1215
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 720
- Top = 420
- _Version = 65536
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- End
- Attribute VB_Name = "frmdialog"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdcolor_Click()
- CommonDialog1.DialogTitle = " Select A Color "
- CommonDialog1.Flags = &H2
- CommonDialog1.ShowColor
- MsgBox " The following Color has Been Selected " & CommonDialog1.Color
- End Sub
- Private Sub cmdfonts_Click()
- CommonDialog1.DialogTitle = " Select A Font "
- CommonDialog1.Flags = &H40000
- CommonDialog1.ShowFont
- End Sub
- Private Sub cmdhelp_Click()
- CommonDialog1.DialogTitle = " Select A Help Topic "
- CommonDialog1.HelpCommand = &H4
- CommonDialog1.ShowHelp
- End Sub
- Private Sub cmdopen_Click()
- CommonDialog1.DialogTitle = " Open A File "
- CommonDialog1.Filter = "*.*"
- CommonDialog1.filename = "*.*"
- CommonDialog1.ShowOpen
- MsgBox " You have selected " & CommonDialog1.filename & " As the file to Open "
- End Sub
- Private Sub cmdprint_Click()
- CommonDialog1.DialogTitle = " Select A Printer "
- CommonDialog1.Flags = &H100&
- CommonDialog1.ShowPrinter
- MsgBox " The Selected printer has the windows device handle of " & CommonDialog1.hDC
- End Sub
- Private Sub Cmdsave_Click()
- CommonDialog1.DialogTitle = " Save A File "
- CommonDialog1.Filter = "*.*"
- CommonDialog1.filename = "*.*"
- CommonDialog1.Flags = &H2&
- CommonDialog1.ShowSave
- MsgBox " You have selected " & CommonDialog1.filename & " As the file to Save to "
- End Sub
-