¿++.frm
资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:3k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form Locate_Frm
- BorderStyle = 3 'Fixed Dialog
- Caption = "人员定位"
- ClientHeight = 960
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3285
- Icon = "定位.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 960
- ScaleWidth = 3285
- ShowInTaskbar = 0 'False
- StartUpPosition = 1 '所有者中心
- Begin VB.TextBox Txt_Person
- Height = 300
- Left = 555
- TabIndex = 0
- Top = 165
- Width = 2640
- End
- Begin VB.CommandButton Cmd_Cancel
- Cancel = -1 'True
- Caption = "取消(&C)"
- Height = 300
- Left = 2070
- TabIndex = 2
- Top = 570
- Width = 1120
- End
- Begin VB.CommandButton Cmd_OK
- Caption = "确定(&O)"
- Default = -1 'True
- Height = 300
- Left = 870
- TabIndex = 1
- Top = 585
- Width = 1120
- End
- Begin VB.Label Lab_Mark
- AutoSize = -1 'True
- Caption = "人员:"
- Height = 180
- Left = 75
- TabIndex = 3
- Top = 225
- Width = 450
- End
- End
- Attribute VB_Name = "Locate_Frm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '******************************************************************
- '* 模 块 名 称 :定位
- '* 功 能 描 述 :
- '* 程序员姓名 :苗鹏
- '* 最后修改人 :苗鹏
- '* 最后修改时间:2002/01/01
- '* 备 注:
- '******************************************************************
- Option Explicit
- Public frm As Form
- Private Sub Cmd_Cancel_Click()
- Unload Me
- End Sub
- Private Sub Cmd_OK_Click()
- '调用父窗体的 Locate(s as string ) 函数
- With frm
- If Trim(Me.Txt_Person.Text) <> "" Then
- If frm.Locate(Me.Txt_Person.Text) = 0 Then
- MsgBox "没有此人!", vbOKOnly + vbCritical
- End If
- Me.Txt_Person.SetFocus
- Me.Txt_Person.SelStart = 0
- Me.Txt_Person.SelLength = Len(Me.Txt_Person.Text)
- End If
- End With
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Set frm = Nothing
- End Sub