home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Icon Viewer"
- ClientHeight = 2700
- ClientLeft = 1425
- ClientTop = 1890
- ClientWidth = 5910
- Height = 3390
- Icon = ICONVIEW.FRX:0000
- Left = 1365
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 2700
- ScaleWidth = 5910
- Top = 1260
- Width = 6030
- Begin DriveListBox Drive1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 360
- Left = 1950
- TabIndex = 2
- Top = 2100
- Width = 2055
- End
- Begin CommandButton Command3
- Caption = "Quit"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 4350
- TabIndex = 6
- Top = 1950
- Width = 1365
- End
- Begin CommandButton Command1
- Caption = "Copy Name"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 4350
- TabIndex = 5
- Top = 1350
- Width = 1365
- End
- Begin DirListBox Dir1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 1215
- Left = 1950
- TabIndex = 3
- Top = 750
- Width = 2055
- End
- Begin FileListBox File1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 1710
- Left = 120
- TabIndex = 4
- Top = 720
- Width = 1755
- End
- Begin PictureBox Picture1
- BorderStyle = 0 'None
- Height = 555
- Left = 120
- ScaleHeight = 555
- ScaleWidth = 555
- TabIndex = 1
- Top = 120
- Width = 555
- End
- Begin Label Label1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 870
- TabIndex = 0
- Top = 240
- Width = 4065
- End
- Begin Menu AboutMenu
- Caption = "About"
- End
- Begin Menu HelpMenu
- Caption = "Help"
- End
- Sub AboutMenu_Click ()
- Msg$ = "An Icon Viewing Utility written in Visual Basic" + Chr$(13) + Chr$(13) + "Donated to the Public Domain" + Chr$(13) + "by" + Chr$(13) + "Dave Evers, Quincy, IL" + Chr$(13) + Chr$(13) + "Enjoy!!!"
- ReturnVal% = MsgBox(Msg$, 64, "About IconView")
- End Sub
- Sub Command1_Click ()
- IconName$ = Dir1.Path + "\" + File1.FileName
- If InStr(UCase$(IconName$), ".ICO") Then
- Msg$ = "The FileName below has been copied to the ClipBoard:" + Chr$(13) + Chr$(13) + " " + IconName$
- ReturnVal% = MsgBox(Msg$, 0, "ClipBoard Save")
- ClipBoard.SetText IconName$
- End If
- End
- End Sub
- Sub Command3_Click ()
- End
- End Sub
- Sub Dir1_Change ()
- File1.Path = Dir1.Path
- File1.Pattern = "*.ICO"
- If Right$(Dir1.Path, 1) = "\" Then
- Label1.Caption = Dir1.Path + "*.ico"
- Else
- Label1.Caption = Dir1.Path + "\*.ico"
- End If
- End Sub
- Sub Drive1_Change ()
- TryIt:
- On Error Resume Next
- Dir1.Path = Drive1.Drive
- If Err Then
- Beep
- Msg$ = "No Disk or Unformatted Disk in Drive."
- ReturnVal% = MsgBox(Msg$, 21, "")
- If ReturnVal% = 4 Then GoTo TryIt
- If ReturnVal% = 2 Then Drive1.Drive = Dir1.Path
- End If
- Label1.Caption = Dir1.Path
- End Sub
- Sub File1_Click ()
- PictureName$ = Dir1.Path + "\" + File1.FileName
- Picture1.Picture = LoadPicture(PictureName$)
- Label1.Caption = PictureName$
- End Sub
- Sub Form_Load ()
- File1.Pattern = "*.ico"
- If Right$(Dir1.Path, 1) = "\" Then
- Label1.Caption = Dir1.Path + "*.ico"
- Else
- Label1.Caption = Dir1.Path + "\*.ico"
- End If
- End Sub
- Sub HelpMenu_Click ()
- Msg$ = "Select Icon to be viewed using Drive, Directory, and File controls."
- Msg$ = Msg$ + Chr$(13) + Chr$(13) + "To save Icon path and filename to Clipboard, press [Copy Name] button."
- ReturnVal% = MsgBox(Msg$, 64, "IconView Help")
- End Sub
-