gpt4 book ai didi

.net - 如何在 VB.NET 中切换大写锁定?

转载 作者:可可西里 更新时间:2023-11-01 13:28:42 26 4
gpt4 key购买 nike

如何使用 VB.NET 切换 Caps Lock 的状态?

最佳答案

尝试 this :

Public Class Form1
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Call keybd_event(System.Windows.Forms.Keys.CapsLock, &H14, 1, 0)
Call keybd_event(System.Windows.Forms.Keys.CapsLock, &H14, 3, 0)
End Sub
End Class

关于.net - 如何在 VB.NET 中切换大写锁定?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58937/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com