mastercoin-MSC / masterchest-wallet

Masterchest Wallet
MIT License
15 stars 13 forks source link

Click to minimize to windows taskbar #45

Open anderssonfilip opened 10 years ago

anderssonfilip commented 10 years ago

A small detail but its standard for a single click on the taskbar icon to minimize the window, if its open or maximized

anderssonfilip commented 10 years ago

I looked this up and because the FormBorderStyle is removed the normal behavior can be restored with

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_MINIMIZEBOX As Int32 = &H20000
        cp.Style = cp.Style Or WS_SYSMENU Or WS_MINIMIZEBOX
        Return cp
    End Get
End Property