Change ShowInTaskbar at Runtime
No attachments for this post
This code will allow you to change the .ShowInTaskBar at runtime. Please Comment and Vote.
Original Author: že7eN
SetShowInTaskbar False, Me.hwnd or SetShowInTaskbar True, Me.hwnd
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Const GWL_EXSTYLE = (-20)
Public Sub SetShowInTaskbar(Visible As Boolean, hWnd As Long)
Dim Ret As Long
Dim lNewLong As Long
Select Case Visible
lNewLong = -128
lNewLong = 128
Ret = SetWindowLong(hWnd, GWL_EXSTYLE, lNewLong)
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.