vb 动态卸载固态控件

前端之家收集整理的这篇文章主要介绍了vb 动态卸载固态控件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

添加2个按钮,点击command2按钮的时候,卸载command1按钮

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long,ByVal wMsg As Long,ByVal wParam As Long,lParam As Any) As Long
Private Const WM_CLOSE = &H10

Private Sub Command2_Click()SendMessage Command1.hwnd,WM_CLOSE,0End Sub

猜你在找的VB相关文章