COMO DESABILITAR A TECLA DO WINDOWS NO TECLADO E
E MAIS COM EU FAÇO PARA ESCONDER A BARRA DO MENU INICIAR.
cara tenta algo assim
[/c]
Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cY As Long, ByVal wFlags As Long) As Long
Private Const HWND_TOPMOST = -1
Private Const SWP_NOACTIVATE = &H10
Private Const SWP_SHOWWINDOW = &H40
Private Const SWP_HIDEWINDOW = &H80
Private Const SWP_NOZORDER = &H4
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOREPOSITION = &H200
Private Const SWP_NOSIZE = &H1
[c]Public Sub EscondeBarratarefas()
Dim nTaskBarhWnd As Long
nTaskBarhWnd = FindWindow("Shell_traywnd", "")
If nTaskBarhWnd <> 0 Then Call SetWindowPos(nTaskBarhWnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
End Sub
Public Sub MostraBarratarefas()
Dim nTaskBarhWnd As Long
nTaskBarhWnd = FindWindow("Shell_traywnd", "")
If nTaskBarhWnd <> 0 Then Call SetWindowPos(nTaskBarhWnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
End Sub
Private Sub Command1_Click()
EscondeBarratarefas
End Sub
Private Sub Command2_Click()
MostraBarratarefas
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 91 Then
KeyCode = 0
SendKeys "<Tab>"
End If
End Sub
[/c]
segue projeto exemplo
Tópico encerrado , respostas não são mais permitidas