标题:[求助]VB 截图报错
取消只看楼主
loyxqing
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2022-3-10
结帖率:100%
已结贴  问题点数:20 回复次数:1 
[求助]VB 截图报错
最近练习VB编程,网上找了段VB截图,不知道为什么对象错误,麻烦哪位大神给解答下
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const theScreen = 0
Const theForm = 1
Private Sub Command1_Click()
Call keybd_event(vbKeySnapshot, theScreen, 0, 0)
DoEvents
Picture1.Picture = Clipboard.GetData(vbCFBitmap)
End Sub
搜索更多相关主题的帖子: ByVal 报错 Private VB Sub 
2022-03-15 20:58
loyxqing
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2022-3-10
得分:0 
运行到这句Picture1.Picture = Clipboard.GetData(vbCFBitmap)  报错
2022-03-15 20:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-508566-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.102785 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved