home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Registry
- Caption = "Insert Filters"
- ClientHeight = 2790
- ClientLeft = 1680
- ClientTop = 1725
- ClientWidth = 4140
- Height = 3255
- Left = 1590
- LinkTopic = "Form2"
- ScaleHeight = 2790
- ScaleWidth = 4140
- Top = 1350
- Width = 4320
- Begin VB.CommandButton Cancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 375
- Left = 2640
- TabIndex = 2
- Top = 720
- Width = 855
- End
- Begin VB.CommandButton OK
- Caption = "OK"
- Default = -1 'True
- Height = 375
- Left = 2640
- TabIndex = 1
- Top = 240
- Width = 855
- End
- Begin VB.ListBox List1
- Height = 2400
- Left = 480
- TabIndex = 0
- Top = 120
- Width = 1935
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 3240
- Top = 1440
- _Version = 65536
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- Flags = 4096
- End
- Attribute VB_Name = "Registry"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Public RegFilters As Object
- Private Sub Cancel_Click()
- Hide
- End Sub
- Private Sub Form_Load()
- Dim filter As IRegFilterInfo
- List1.Clear
- For Each filter In RegFilters
- List1.AddItem filter.Name
- Next filter
- End Sub
- Private Sub OK_Click()
- Dim filter As IRegFilterInfo
- For Each filter In RegFilters
- If filter.Name = List1.Text Then
- Dim f As IFilterInfo
- filter.filter f
- If f.IsFileSource Then
- CommonDialog1.ShowOpen
- f.filename = CommonDialog1.filename
- End If
- Exit For
- End If
- Next filter
- Hide
- End Sub
-