VB相关
倒大霉的上帝
倒大霉的上帝
展开
-
ADODB.Stream用法及属性
组件:"Adodb.Stream"有下列方法:Cancel 方法 使用方法如下 Object.Cancel 说明:取消执行挂起的异步 Execute 或 Open 方法的调用。Close 方法 使用方法如下 Object.Close :关闭对像CopyTo 方法 使用方法如下 Object.CopyTo(destStream,[Ch转载 2009-07-31 09:39:00 · 678 阅读 · 0 评论 -
Treeview拖曳
option ExplicitPrivate mvarSelectKey As StringPrivate Sub Form_Load() TreeView1.Indentation = 300 设置缩进 TreeView1.LineStyle = tvwRootLines 设置显示方式 TreeView1.LabelEd原创 2010-01-27 16:27:00 · 697 阅读 · 2 评论 -
全局Hook
FormCodeOption ExplicitPrivate Sub form_load()Text1.Text = ""hHook = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf MyKBHook, App.hInstance, 0)If hHook = 0 Then 如果钩子注册失败会返回0,否则返回注册的钩子句柄 MsgBox "遇转载 2010-01-27 16:57:00 · 579 阅读 · 0 评论 -
执行系统命令(cmd)生成字符串
<br />通过管道(CreatePipe)可以返回cmd命令的内容,方法如下<br />1:窗体代码:<br />Option ExplicitPrivate WithEvents cmdText As clsOutPutCmdTxtPrivate Sub Command1_Click() Dim strCommandText As String Set cmdText = New clsOutPutCmdTxt cmdText.CommandLine原创 2010-11-08 17:12:00 · 2002 阅读 · 0 评论