home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Begin VB.Form edit
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Bookmarks organizer"
- ClientHeight = 5535
- ClientLeft = 45
- ClientTop = 285
- ClientWidth = 4725
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5535
- ScaleWidth = 4725
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'CenterScreen
- Begin MSComctlLib.ListView ListView1
- Height = 5055
- Left = 0
- TabIndex = 0
- Top = 480
- Width = 4695
- _ExtentX = 8281
- _ExtentY = 8916
- View = 1
- LabelWrap = -1 'True
- HideSelection = -1 'True
- GridLines = -1 'True
- _Version = 393217
- Icons = "ImageList1"
- SmallIcons = "ImageList1"
- ColHdrIcons = "ImageList1"
- ForeColor = -2147483640
- BackColor = -2147483643
- BorderStyle = 1
- Appearance = 1
- NumItems = 0
- End
- Begin MSComctlLib.ImageList ImageList1
- Left = 0
- Top = 0
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 1
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "edit.frx":0000
- Key = ""
- EndProperty
- EndProperty
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Double click on the item you want to rename,or press delete button on your keyboard to remove it from you bookmarks."
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 0
- Width = 4575
- End
- Attribute VB_Name = "edit"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Form_Activate()
- On Error Resume Next
- For i = 0 To indeex
- ListView1.ListItems.Add , , frmbrowse.mnubook(i).Caption, 1, 1
- Next i
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- On Error Resume Next
- frmbrowse.savebook
- End Sub
- Private Sub ListView1_AfterLabelEdit(Cancel As Integer, NewString As String)
- On Error Resume Next
- frmbrowse.mnubook(ListView1.SelectedItem.Index - 1).Caption = NewString
- End Sub
- Private Sub ListView1_BeforeLabelEdit(Cancel As Integer)
- On Error Resume Next
- End Sub
- Private Sub ListView1_KeyDown(KeyCode As Integer, Shift As Integer)
- On Error Resume Next
- If KeyCode = vbKeyDelete And ListView1.SelectedItem.Index - 1 <> 0 Then
- Unload frmbrowse.mnubook(ListView1.SelectedItem.Index - 1)
- ListView1.ListItems.Remove ListView1.SelectedItem.Index
- End If
- If KeyCode = vbKeyDelete And ListView1.SelectedItem.Index - 1 = 0 Then
- MsgBox "Cannot delete this Item"
- End If
- End Sub
-