?? frm_ryxs.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frm_RYXS
BorderStyle = 5 'Sizable ToolWindow
Caption = "操作員選擇"
ClientHeight = 4065
ClientLeft = 3210
ClientTop = 2385
ClientWidth = 5655
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4065
ScaleWidth = 5655
ShowInTaskbar = 0 'False
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 1800
Top = 3600
Visible = 0 'False
Width = 1920
_ExtentX = 3387
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=RKGL"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=RKGL"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from Table_xxwhb"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox Text1
DataField = "用戶名"
DataSource = "Adodc1"
Height = 375
Left = 120
TabIndex = 3
Text = "Text1"
Top = 3600
Visible = 0 'False
Width = 1215
End
Begin MSComctlLib.ImageList ImageList1
Left = 1320
Top = 3480
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_RYXS.frx":0000
Key = ""
EndProperty
EndProperty
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 4680
TabIndex = 2
Top = 3600
Width = 855
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 375
Left = 3720
TabIndex = 1
Top = 3600
Width = 855
End
Begin MSComctlLib.ListView ListView1
Height = 3495
Left = 0
TabIndex = 0
Top = 0
Width = 5655
_ExtentX = 9975
_ExtentY = 6165
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
Icons = "ImageList1"
SmallIcons = "ImageList1"
ColHdrIcons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
End
Attribute VB_Name = "frm_RYXS"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim itmX As ListItem '定義一個ListItem對象
Dim a
Dim key As String '定義字符串變量
Private Sub Command1_Click()
If frm_RYXS.Caption = "操作員選擇" Then
frm_XTDL.Text2.Text = ListView1.SelectedItem
'frm_RYXS.Hide
frm_XTDL.Show
frm_XTDL.Text1.SetFocus
Unload Me
ElseIf frm_RYXS.Caption = "用戶刪除" Then
frm_YHGL.Text4.Text = ListView1.SelectedItem
'frm_RYXS.Hide
frm_YHGL.Show
Unload Me
End If
End Sub
Private Sub Command2_Click()
If Caption = "操作員選擇" Then
frm_RYXS.Hide
frm_XTDL.Show
ElseIf Caption = "用戶刪除" Then
frm_RYXS.Hide
frm_YHGL.Show
Else
End If
End Sub
Private Sub Form_Load()
Adodc1.RecordSource = "select * from Table_xxwhb"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
ListView1.Enabled = True
ListView1.ListItems.Clear
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
key = Text1.Text
Set itmX = ListView1.ListItems.ADD(, , key, 1)
Adodc1.Recordset.MoveNext
Loop
Else
Command1.Enabled = False
ListView1.Enabled = False
End If
End Sub
Private Sub ListView1_DblClick()
If frm_RYXS.Caption = "操作員選擇" Then
frm_XTDL.Text2.Text = ListView1.SelectedItem
frm_XTDL.Show
frm_XTDL.Text1.SetFocus
Unload Me
ElseIf frm_RYXS.Caption = "用戶刪除" Then
frm_YHGL.Text4.Text = ListView1.SelectedItem
frm_YHGL.Show
Unload Me
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -