seemax
Messages postés20Date d'inscriptionlundi 5 avril 2004StatutMembreDernière intervention27 avril 2004
-
23 avril 2004 à 10:40
cs_labout
Messages postés1356Date d'inscriptionsamedi 8 décembre 2001StatutMembreDernière intervention23 octobre 2006
-
23 avril 2004 à 15:04
Bonjour,
je cherche a masquer la barre des taches Windows lorsque lance mon application, pour que l'utilisateur n'y ai plus acces.
Quelqu'un saurait-il faire ca?
cs_labout
Messages postés1356Date d'inscriptionsamedi 8 décembre 2001StatutMembreDernière intervention23 octobre 20068 23 avril 2004 à 12:08
labout
Après le inherit
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer
Public Const SWP_HIDEWINDOW As Integer = &H80
Public Const SWP_SHOWWINDOW As Integer = &H40
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TaskBarHwnd = FindWindow("Shell_traywnd", "")
If Button2.Text = "Hide" Then
SetWindowPos(TaskBarHwnd, 0&, 0&, 0&, 0&, 0&, SWP_HIDEWINDOW)