www.pudn.com > gdqj1a302.zip > Fname1.frm
VERSION 5.00
Begin VB.Form fmFname1
BackColor = &H0000C0C0&
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 2085
ClientLeft = 2940
ClientTop = 3840
ClientWidth = 6870
LinkTopic = "Form1"
ScaleHeight = 2085
ScaleWidth = 6870
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command2
Caption = "取消"
Height = 405
Left = 1650
TabIndex = 4
Top = 1290
Width = 1005
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 405
Left = 390
TabIndex = 3
Top = 1290
Width = 1035
End
Begin VB.TextBox Text1
Height = 405
Left = 420
TabIndex = 2
Text = "Text1"
Top = 600
Width = 2235
End
Begin VB.ListBox List1
Columns = 5
Height = 1230
ItemData = "Fname1.frx":0000
Left = 3300
List = "Fname1.frx":0002
TabIndex = 0
Top = 570
Width = 3165
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "请选择文件号:"
Height = 255
Left = 3360
TabIndex = 5
Top = 270
Width = 1245
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请输入文件名:"
Height = 255
Left = 480
TabIndex = 1
Top = 300
Width = 1245
End
End
Attribute VB_Name = "fmFname1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public sNoFile As String, sFname As String, nList As Integer
Private Sub Command1_Click()
sNoFile = List1.Text
sFname = Text1.Text
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Activate()
Text1.SetFocus
End Sub
Private Sub Form_Load()
Text1.Text = ""
sNoFile = ""
sFname = ""
End Sub
Private Sub List1_GotFocus()
List1.ListIndex = nList
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
' List1.SetFocus
End If
End Sub