Hello, as the Title said: How to minimize the form It's borderless and I need to minimize it while clicking on the Icon Exampel: http://img580.imageshack.us/img580/4212/rewrwerwer.png

Thanks in advanced :)

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.

yes but when i click the icon it couldn't minimize

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

Add this code on Form1

Protected Overrides ReadOnly Property CreateParams() As CreateParams
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 :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.