home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmOxyMor
- Caption = "OXYMORONS"
- ClientHeight = 2310
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 3570
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2310
- ScaleWidth = 3570
- Begin VB.PictureBox picSelected
- Height = 495
- Left = 840
- ScaleHeight = 435
- ScaleWidth = 1875
- TabIndex = 3
- Top = 1680
- Width = 1935
- End
- Begin VB.CommandButton cmdAdd
- Caption = "Add an Item"
- Height = 495
- Left = 1920
- TabIndex = 2
- Top = 120
- Width = 1215
- End
- Begin VB.ListBox lstOxys
- Height = 1260
- Left = 120
- Sorted = -1 'True
- TabIndex = 0
- Top = 120
- Width = 1575
- End
- Begin VB.Label lblDelete
- Caption = "[To delete an item, double-click on it.]"
- Height = 495
- Left = 1800
- TabIndex = 1
- Top = 840
- Width = 1695
- End
- Attribute VB_Name = "frmOxyMor"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdAdd_Click()
- Dim item As String
- item = InputBox("Item to Add:")
- lstOxys.AddItem item
- End Sub
- Private Sub Form_Load()
- lstOxys.AddItem "jumbo shrimp"
- lstOxys.AddItem "definite maybe"
- lstOxys.AddItem "old news"
- lstOxys.AddItem "good grief"
- End Sub
- Private Sub lstOxys_Click()
- picSelected.Cls
- picSelected.Print "The selected item is"
- picSelected.Print Chr(34) & lstOxys.Text & Chr(34) & "."
- End Sub
- Private Sub LstOxys_DblClick()
- lstOxys.RemoveItem lstOxys.ListIndex
- End Sub
-