Open anderssonfilip opened 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
A small detail but its standard for a single click on the taskbar icon to minimize the window, if its open or maximized