?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "計算文本行數(shù)"
ClientHeight = 3375
ClientLeft = 60
ClientTop = 345
ClientWidth = 4095
LinkTopic = "Form1"
ScaleHeight = 3375
ScaleWidth = 4095
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "計算行數(shù)"
Height = 615
Left = 1920
TabIndex = 1
Top = 2640
Width = 1455
End
Begin VB.TextBox Text1
Height = 2295
Left = 240
MultiLine = -1 'True
TabIndex = 0
Text = "Form1.frx":0000
Top = 120
Width = 3375
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function SendMessageLong Lib _
"user32" Alias "SendMessageA" _
( _
ByVal hwnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
ByVal lParam As Long _
) As Long
Private Const EM_GETLINECOUNT = &HBA
Private Sub Command1_Click()
Dim lineCount As Integer
lineCount = SendMessageLong(Text1.hwnd, _
EM_GETLINECOUNT, 0&, 0&)
MsgBox Str(lineCount), vbInformation + vbOKOnly, "行數(shù)"
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -