Sie sind auf Seite 1von 4

VERSION 5.

00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmcustom
Caption
= "PICK A CATEGORY"
ClientHeight
= 8805
ClientLeft
= 1260
ClientTop
= 450
ClientWidth
= 14985
LinkTopic
= "Form1"
ScaleHeight
= 8805
ScaleWidth
= 14985
StartUpPosition = 2 'CenterScreen
Begin MSComctlLib.ImageList ImageList1
Left
= 3600
Top
= 1680
_ExtentX
= 1005
_ExtentY
= 1005
BackColor
= 8454143
ImageWidth
= 200
ImageHeight
= 200
MaskColor
= 12632256
_Version
= 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 8
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":0000
Key
= ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":94C8
Key
= ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":FD36
Key
= ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":163DA
Key
= ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":1C2E4
Key
= ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":23BF9
Key
= ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":2A5D4
Key
= ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture
= "frmcustom.frx":32F0F
Key
= ""
EndProperty
EndProperty
End
Begin MSComctlLib.ListView Lvproduct
Height
= 8415

Left
=
TabIndex
=
Top
=
Width
=
_ExtentX
=
_ExtentY
=
LabelEdit
=
LabelWrap
=
HideSelection =
OLEDragMode
=
HotTracking
=
HoverSelection =
PictureAlignment=
_Version
=
ForeColor
=
BackColor
=
Appearance
=
BeginProperty Font
Name
Size
Charset
Weight
Underline
Italic
Strikethrough
EndProperty
OLEDragMode
=
NumItems
=
End
End
Attribute
Attribute
Attribute
Attribute
Attribute

0
0
120
15015
26485
14843
1
-1 'True
-1 'True
1
-1 'True
-1 'True
4
393217
-2147483640
-2147483644
1
{0BE35203-8F91-11CE-9DE3-00AA004BB851}
= "MS Sans Serif"
= 9.75
= 0
= 400
= 0 'False
= 0 'False
= 0 'False
1
0

VB_Name = "frmcustom"
VB_GlobalNameSpace = False
VB_Creatable = False
VB_PredeclaredId = True
VB_Exposed = False

Public Sub LoadForm(ByRef srcForm As Form)


srcForm.Show
' srcForm.WindowState = vbMaximized
srcForm.SetFocus
End Sub
Private Sub Form_Load()
With Lvproduct
Set .SmallIcons = ImageList1
Set .Icons = ImageList1
'For Hardware and Software
.ListItems.Add , "frmHardwareSoftware", "View Hardware and Software", 1,
1
'View all Custom Notebooks
.ListItems.Add , "frmNotebook", "View all Custom Notebooks", 2, 2
'View all Custom Desktop
.ListItems.Add , "frmDesktop", "View All Custom Desktop", 3, 3
'View all Custom Workstation
.ListItems.Add , "frmWorkstation", "View all Custom Workstation", 4, 4

'View all Intel Rack Servers


.ListItems.Add , "frmintelrackserver", "View all Intel Rack Servers", 5,
5
'View all Storage Servers
.ListItems.Add , "frmstorageserver", "View all Storage Servers", 6, 6
'View Surveillance Solutions
.ListItems.Add , "frmSurveillance", "View Surveillance Solutions", 7, 7
'View all Pedestial Server
.ListItems.Add , "frmpedestialServer", "View all Pedestial Server", 8, 8
End With
End Sub

Private Sub Form_Resize()


On Error Resume Next
Lvproduct.Width = ScaleWidth
Lvproduct.Height = ScaleHeight
End Sub

Private Sub Lvproduct_DblClick()


Select Case Lvproduct.SelectedItem.Key
'For Hardware and Software
Case "frmHardwareSoftware"
MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "MES
SAGE"
'View all Customer Notebooks
Case "frmNotebook":
MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "MES
SAGE"
'View all Custom Desktop
Case "frmDesktop"
MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "ME
SSAGE"
'View all Custom Workstation
Case "frmWorkstation"
MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "ME
SSAGE"
'View all Intel Rack Server
Case "frmintelrackserver"
MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "ME
SSAGE"
'View all Storage Server
Case "frmstorageserver"
MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "ME
SSAGE"
'View Surveillance Solutions
Case "frmSurveillance"

MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "ME


SSAGE"
'View all Pedestial Server
Case "frmpedestialServer"
MsgBox "You selected " & Lvproduct.SelectedItem.Key, vbInformation, "ME
SSAGE"
End Select
End Sub

Das könnte Ihnen auch gefallen