⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 如何改变文本插入点的形状.txt

📁 VB技巧问答10000例 VB技巧问答10000例
💻 TXT
字号:
Option Explicit 
     
    Private Declare Sub CreateCaret Lib "user32" (ByVal w As Long, ByVal x As Long, ByVal y As Long, ByVal z As Long) 
    Private Declare Function ShowCaret Lib "user32" (ByVal x As Long) As Long 
    Private Declare Function GetFocus Lib "user32" () As Long 
     
     
    Sub Text1_GotFocus() 
     Dim h As Long, x As Long 
     h = GetFocus() ' get the handle to the text box 
     Call CreateCaret(h, 0, 8, 24) ' create new caret size 
     x = ShowCaret(h) ' show the new caret 
    End Sub 
<END>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -