2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by xxxferraxxx
0

im not sure how to do that when u click the icon.
but i do know how to minimize with a button.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.WindowState = FormWindowState.Minimized
    End Sub

u can add a minimize image to the button as well.

0

Found the code and working, and i would like to share it:

Add this code on Form1

Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim parm As CreateParams = MyBase.CreateParams
parm.Style = parm.Style Or &H20000    ' Turn on the WS_MINIMIZEBOX style flag
Return parm
End Get
End Property

Thank you for sharing the link :)

Edited by xxxferraxxx: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.