home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.1#0"; "COMCTL32.OCX"
- Begin VB.Form Form1
- Caption = "Slider Demo 2"
- ClientHeight = 1890
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4695
- LinkTopic = "Form1"
- ScaleHeight = 1890
- ScaleWidth = 4695
- StartUpPosition = 3 'Windows Default
- Begin ComctlLib.Slider Slider1
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 540
- Width = 4275
- _ExtentX = 7541
- _ExtentY = 873
- Max = 50
- SelectRange = -1 'True
- TickFrequency = 5
- End
- Begin VB.Label Label4
- Caption = "10"
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 270
- Left = 4125
- TabIndex = 4
- Top = 1095
- Width = 300
- End
- Begin VB.Label Label3
- Caption = "5"
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 270
- Left = 2205
- TabIndex = 3
- Top = 1095
- Width = 300
- End
- Begin VB.Label Label2
- Caption = "0"
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 270
- Left = 285
- TabIndex = 2
- Top = 1095
- Width = 300
- End
- Begin VB.Label Label1
- Caption = "Length in inches = 0"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 270
- TabIndex = 1
- Top = 60
- Width = 2685
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Slider1_Change()
- Label1.Caption = "Length in inches = " & Format(Slider1.Value / 5, "#.00")
- End Sub
- Private Sub Slider1_Scroll()
- Label1.Caption = "Length in inches = " & Format(Slider1.Value / 5, "#.00")
- End Sub
-