?? frmnotepad.frm
字號(hào):
VERSION 5.00
Begin VB.Form frmNotePad
BorderStyle = 1 'Fixed Single
Caption = "SQL命令編輯器"
ClientHeight = 3090
ClientLeft = 45
ClientTop = 435
ClientWidth = 4680
Icon = "frmNotePad.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox txtUpdate
Enabled = 0 'False
Height = 270
Left = 120
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 7
Text = "frmNotePad.frx":080A
Top = 2280
Visible = 0 'False
Width = 4215
End
Begin VB.TextBox txtDelete
Enabled = 0 'False
Height = 270
Left = 120
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 6
Text = "frmNotePad.frx":083F
Top = 1920
Visible = 0 'False
Width = 4215
End
Begin VB.TextBox txtInsert
Enabled = 0 'False
Height = 270
Left = 120
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 5
Text = "frmNotePad.frx":086A
Top = 1560
Visible = 0 'False
Width = 4215
End
Begin VB.TextBox txtSelect
Enabled = 0 'False
Height = 270
Left = 120
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 4
Text = "frmNotePad.frx":089E
Top = 1200
Visible = 0 'False
Width = 4215
End
Begin VB.TextBox txtAlter
Enabled = 0 'False
Height = 270
Left = 120
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 3
Text = "frmNotePad.frx":08C8
Top = 840
Visible = 0 'False
Width = 4215
End
Begin VB.TextBox txtDrop
Enabled = 0 'False
Height = 270
Left = 120
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 2
Text = "frmNotePad.frx":0974
Top = 480
Visible = 0 'False
Width = 4215
End
Begin VB.TextBox txtCreate
Enabled = 0 'False
Height = 270
Left = 120
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 1
Text = "frmNotePad.frx":0992
Top = 120
Visible = 0 'False
Width = 4215
End
Begin VB.TextBox txtPad
Height = 3135
Left = 0
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 0
Top = 0
Width = 4455
End
Begin VB.Label Label6
BackColor = &H000000FF&
Height = 375
Left = 0
TabIndex = 14
Top = 278
Width = 4695
End
Begin VB.Label Label5
BackColor = &H000080FF&
Height = 375
Left = 0
TabIndex = 13
Top = 638
Width = 4695
End
Begin VB.Label Label4
BackColor = &H0000FFFF&
Height = 375
Left = 0
TabIndex = 12
Top = 998
Width = 4695
End
Begin VB.Label Label3
BackColor = &H00008000&
Height = 375
Left = 0
TabIndex = 11
Top = 1358
Width = 4695
End
Begin VB.Label Label2
BackColor = &H00C0FFC0&
Height = 375
Left = 0
TabIndex = 10
Top = 1718
Width = 4695
End
Begin VB.Label Label1
BackColor = &H00FF0000&
Height = 375
Left = 0
TabIndex = 9
Top = 2078
Width = 4695
End
Begin VB.Label Label7
BackColor = &H00C000C0&
Height = 375
Left = 4440
TabIndex = 8
Top = 2438
Width = 255
End
Begin VB.Menu SQLOP
Caption = "SQL命令"
Visible = 0 'False
Begin VB.Menu CREATE
Caption = "創(chuàng)建表(CREATE)"
End
Begin VB.Menu DROP
Caption = "刪除表(DROP)"
End
Begin VB.Menu ALTER
Caption = "修改表(ALTER)"
End
Begin VB.Menu spr
Caption = "-"
End
Begin VB.Menu SELECT
Caption = "查詢(SELECT)"
End
Begin VB.Menu INSERT
Caption = "插入(INSERT)"
End
Begin VB.Menu DELETE
Caption = "刪除(DELETE)"
End
Begin VB.Menu UPDATE
Caption = "更新(UPDATE)"
End
End
End
Attribute VB_Name = "frmNotePad"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub ALTER_Click()
On Error Resume Next
txtPad = txtAlter
End Sub
Private Sub CREATE_Click()
On Error Resume Next
txtPad = txtCreate
End Sub
Private Sub DELETE_Click()
On Error Resume Next
txtPad = txtDelete
End Sub
Private Sub DROP_Click()
On Error Resume Next
txtPad = txtDrop
End Sub
Private Sub Form_Activate()
On Error Resume Next
MsgBox "右鍵單擊彩色側(cè)邊欄可快速創(chuàng)建SQL命令!", vbInformation, "提示"
End Sub
Private Sub Form_Load()
On Error Resume Next
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
On Error Resume Next
If MsgBox("文本內(nèi)容是否需要保存?", vbQuestion + vbYesNo, "確認(rèn)") = vbYes Then
Clipboard.Clear
Clipboard.SetText txtPad
MsgBox "編輯框內(nèi)所有文本內(nèi)容已保存至Windows系統(tǒng)剪貼板!", vbInformation, "提示"
Unload Me
Else
Unload Me
End If
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub INSERT_Click()
On Error Resume Next
txtPad = txtInsert
End Sub
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub Label2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub Label3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub Label4_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub Label5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub Label6_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub Label7_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub SELECT_Click()
On Error Resume Next
txtPad = txtSelect
End Sub
Private Sub txtPad_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
If Button = 2 Then
PopupMenu SQLOP, 2
End If
End Sub
Private Sub UPDATE_Click()
On Error Resume Next
txtPad = txtUpdate
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -