用me.hide隐藏窗口以后怎样通过热键让它再显示出来啊
就是一直监视键盘的动作
请各位高手指教

解决方案 »

  1.   

    如果没有载体就只能通过API扫描系统键盘信息
      

  2.   

    HIDE之后窗口就没有焦点了,一般设置可能没用!
    查一查以前的帖子,看看别人是怎么样使用全局热键才行!学习!!!!!!!
      

  3.   

    Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    Const SW_SHOWNORMAL = 5
    Const SW_HIDE = 1
     Dim Ret As String
       'Ask for a Window title
        Ret = "故障报警"
        'Search the window
        WinWnd = FindWindow(vbNullString, Ret)
        'Show the window
        If show_hide = True Then
            mnuwarnhide.Caption = "隐藏告警管理"
            ShowWindow WinWnd, SW_SHOWNORMAL
        Else
            mnuwarnhide.Caption = "显示告警管理"
            ShowWindow WinWnd, 0
        End If
    百分百没问题
      

  4.   

    http://www.csdn.net/develop/article/13/13769.shtm
      

  5.   

    http://www.csdn.net/develop/author/netauthor/mahongxi/