home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 May
/
W2KPRK.iso
/
apps
/
crystal
/
disk18
/
Xvb379._
/
Xvb379.
Wrap
Text File
|
1999-08-23
|
3KB
|
101 lines
VERSION 5.00
Object = "{FE0065C0-1B7B-11CF-9D53-00AA003C9CB6}#1.0#0"; "COMCT232.OCX"
Begin VB.Form frmPage
BorderStyle = 3 'Fixed Dialog
Caption = "Page"
ClientHeight = 1095
ClientLeft = 2160
ClientTop = 2310
ClientWidth = 3735
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1095
ScaleWidth = 3735
ShowInTaskbar = 0 'False
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "&Cancel"
Height = 345
Left = 2415
TabIndex = 4
Top = 660
Width = 1215
End
Begin VB.CommandButton cmdOkay
Caption = "&Okay"
Default = -1 'True
Height = 345
Left = 1095
TabIndex = 3
Top = 660
Width = 1215
End
Begin ComCtl2.UpDown spnPage
Height = 345
Left = 3466
TabIndex = 2
Top = 135
Width = 195
_ExtentX = 344
_ExtentY = 609
_Version = 327680
BuddyControl = "txtPage"
BuddyDispid = 196610
OrigLeft = 3435
OrigTop = 135
OrigRight = 3630
OrigBottom = 495
SyncBuddy = -1 'True
Wrap = -1 'True
BuddyProperty = 65547
End
Begin VB.TextBox txtPage
Height = 345
Left = 2865
TabIndex = 1
Top = 135
Width = 600
End
Begin VB.Label lblPage
Caption = "Which page would you like to go to?"
Height = 300
Left = 90
TabIndex = 0
Top = 135
Width = 2760
End
End
Attribute VB_Name = "frmPage"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private m_blnCancel As Boolean
Public Function Display(intCurrent As Integer, intNumber As Integer, strDirection As String) As Integer
Display = intCurrent
If strDirection = "Next" Then Me.spnPage.Value = intCurrent + 1
If strDirection = "Prev" Then Me.spnPage.Value = intCurrent - 1
Me.spnPage.Max = intNumber
m_blnCancel = False
Me.spnPage.Min = 1
Me.Show vbModal
If Not m_blnCancel Then Display = Me.spnPage.Value
End Function
Private Sub cmdCancel_Click()
m_blnCancel = True
Me.Hide
End Sub
Private Sub cmdOkay_Click()
Me.Hide
End Sub
Private Sub Form_Load()
Center Me
End Sub