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 :)
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
yes it happens to me to when i make a borderless form.
What i always do is i press alt + tab to just go to the next process
rather then minimizing.
its an alternative suggestion.
u can check this forum out http://social.msdn.microsoft.com/forums/en-US/winforms/thread/6b91ed64-bc6e-43b6-a869-819f5d0e8fc6
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 :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.