VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 45
ClientTop = 330
ClientWidth = 4860
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4860
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox txtPrice
Height = 315
Left = 3000
TabIndex = 0
Top = 180
Width = 1575
End
Begin VB.ComboBox cmbType
Height = 300
Left = 240
Style = 2 'Dropdown List
TabIndex = 1
Top = 180
Width = 1815
End
Begin MSComctlLib.ListView lvwList
Height = 1995
Left = 180
TabIndex = 2
Top = 780
Width = 4395
_ExtentX = 7752
_ExtentY = 3519
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private CurrentID As Integer
Private F_LD As Boolean
Private Sub cmbType_Click()
Dim i As Integer
For i = 1 To lvwList.ListItems.Count
If lvwList.ListItems(i).Text = cmbType.Text Then
txtPrice.Text = lvwList.ListItems(i).SubItems(1)
txtPrice.SetFocus