www.pudn.com > AVPhone.zip > Form6.frm
VERSION 5.00
Begin VB.Form Form6
BorderStyle = 3 'Fixed Dialog
Caption = "Volume"
ClientHeight = 1956
ClientLeft = 1560
ClientTop = 1920
ClientWidth = 3828
Icon = "Form6.frx":0000
LinkTopic = "Form6"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1956
ScaleWidth = 3828
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton Command1
Cancel = -1 'True
Caption = "OK"
Default = -1 'True
Height = 345
Left = 1290
TabIndex = 2
Top = 1380
Width = 1095
End
Begin VB.HScrollBar HScroll1
Height = 285
LargeChange = 10
Left = 420
Max = 100
TabIndex = 1
Top = 720
Width = 2805
End
Begin VB.Label Label1
Caption = "0%"
Height = 225
Left = 1440
TabIndex = 0
Top = 390
Width = 675
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
On Error GoTo ErrorHandle
Unload Me
Exit Sub
ErrorHandle:
ShowErr
End Sub
Private Sub Form_Load()
On Error GoTo ErrorHandle
'init scroll bar
HScroll1 = Form1.Audio1.Volume
Exit Sub
ErrorHandle:
ShowErr
End Sub
Private Sub HScroll1_Change()
On Error GoTo ErrorHandle
'change volume
Form1.Audio1.Volume = HScroll1
Label1 = HScroll1 & "%"
Exit Sub
ErrorHandle:
ShowErr
End Sub