在文本框中加入滚动条.frm
来自「Windows API函数,希望大伙有用哦」· FRM 代码 · 共 34 行
FRM
34 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 1335
ClientLeft = 60
ClientTop = 345
ClientWidth = 3090
LinkTopic = "Form1"
ScaleHeight = 1335
ScaleWidth = 3090
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Height = 825
Left = 150
MultiLine = -1 'True
TabIndex = 0
Top = 180
Width = 2835
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function ShowScrollBar Lib "user32" (ByVal hwnd As Long, ByVal wBar As Long, ByVal bShow As Long) As Long
Private Const SB_VERT = 1
Private Sub Form_Load()
ShowScrollBar Text1.hwnd, SB_VERT, True
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?