home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form GotoLineDialog
- BorderStyle = 3 'Fixed Dialog
- Caption = "Goto"
- ClientHeight = 1800
- ClientLeft = 2760
- ClientTop = 3750
- ClientWidth = 3765
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1800
- ScaleWidth = 3765
- ShowInTaskbar = 0 'False
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1560
- TabIndex = 0
- Top = 360
- Width = 2055
- End
- Begin VB.CommandButton CancelButton
- Caption = "Cancel"
- Height = 375
- Left = 2400
- TabIndex = 2
- Top = 1200
- Width = 1215
- End
- Begin VB.CommandButton OKButton
- Caption = "OK"
- Height = 375
- Left = 360
- TabIndex = 1
- Top = 1200
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Enter line number"
- Height = 615
- Left = 240
- TabIndex = 3
- Top = 360
- Width = 1215
- End
- Attribute VB_Name = "GotoLineDialog"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public LineNumber As Long
- Private Sub CancelButton_Click()
- LineNumber = -1
- Me.Hide
- End Sub
- Private Sub Form_Load()
- LineNumber = -1
- End Sub
- Private Sub OKButton_Click()
- ' this isn't too bright - no checking (yet)
- ' ... really need to use an API here
- LineNumber = CLng(Text1)
- Me.Hide
- End Sub
- Private Sub Text1_KeyPress(KeyAscii As Integer)
- If KeyAscii = 13 Then
- LineNumber = CLng(Text1)
- Me.Hide
- End If
- End Sub
-