vladiii Posted June 20, 2007 Report Posted June 20, 2007 In modul scrieti asta (aici declaram functiile API pe care le vom folosi in program):Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPublic Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As LongAcum in interiorul programului scriem: Option ExplicitDim a As LongPrivate Sub cmdArata_Click()ShowWindow a, 1'arata taskbarEnd SubPrivate Sub cmdAscunde_Click()ShowWindow a, 0'ascunde taskbarcmdArata.Enabled = TrueEnd SubPrivate Sub cmdIesire_Click()Unload MeEnd SubPrivate Sub Form_Load()a = FindWindow("Shell_TrayWnd", vbNullString)'gaseste handleul taskbaruluicmdArata.Enabled = FalseEnd SubEnjoy It ! Quote