Question minimize / restore from taskbar

d_a_r_k

Member
Joined
Oct 30, 2010
Messages
19
Programming Experience
Beginner
Hi,
I m working on a windows application using VB.NET. Using borderless forms. Can anybody tell me how to minimize / restore that application by clicking from taskbar. (I already added minimize button into the form) but also want the functionality from taskbar. Thanks in advance.
 
VB.NET:
Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
    Get
        Dim cp As CreateParams = MyBase.CreateParams           
        Const WS_SYSMENU As Int32 = &H80000            
        Const WS_MAXIMIZEBOX As Int32 = &H10000
        Const WS_MINIMIZEBOX As Int32 = &H20000
        cp.Style = cp.Style Or WS_SYSMENU Or WS_MINIMIZEBOX
        cp.Style = cp.Style And Not WS_MAXIMIZEBOX
        Return cp
    End Get
End Property
 
Back
Top