I want to build a form which don't have a title bar, but move it, resize it, minimize, normalize and maximize it. I make forms border style none, applied my codes to move and resize it. But saw that can not make it minimize by setting WindowState.Minimized, it just sets size like 120, 30 and location is near to bottom left of screen. How can i minimize a form with a border style none ?
Also i want my form to be controlled from task bar but formborderstyle.none does not permit this. Is there a way to use this form from taskbar just like a form with borderstyle Sizable?
Thanks a lot ?
We have a DataGridView on a form that can be filtered based on a user checkbox to show or hide rows ...
By mkrajew
Hi:I'm trying to turn on the MPEG2 hardware acceleration on the VIA SP13000 motherboard while runnin...
By paullambert
I have a drop down list that is populated from a xml file I alsopopulate the dropdown value from the...
By cb3431
Hi, Please if somebody knows how to dispose a Form which contain an ActiveX control. If you place an...
By anonymous
I have an app which uses an Access database. Its an application resource marked as 'datafile' and pr...
By js123
Is there any "approved" method of controlling the order in which delegates are invoked when an event...
By philipdaniels
I want to create a page template with Web user controls like <html><body><table><tr><...
By omerirmak
i have used docking and Panel controls to correctly position various controls on the form and i am u...
By connect2sandeep, 5 Comments
Hi,Button1_Click(){......................IAsyncResult iarRead = ResponseStream.BeginRead(.....);}But...
By codefund_com, 2 Comments
Users requested data to be saved before each postback, URL redirect, and browser close. Is Unload an...
By thuhue, 2 Comments
Hi, Okay, I have one asp.net page which consits of 2 User Controls. Each user Controls has 1 button ...
By azamsharp, 2 Comments
If I have to pass strings that contains spaces over to a next .aspx page, how will I do it without t...
By extension, 5 Comments
I have x number of forms open at the same time. How can I minimize all the forms with one event?some...
By codefund_com, 2 Comments
hi all my app has a 'notifyIcon'. when i close its window, i want it to behave like MSN Me...
By anonymous, 7 Comments
What function should I use to minimize a form in C# or VB.Net ? Many applications have a option - &q...
By alvi_du, 1 Comments
I didn't have any problem minimizing my borderless form:
Public
Class Form1Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.WindowState = FormWindowState.Minimized
End Sub
End Class
johnwein | Fri, 28 Sep 2007 09:43:00 GMT |
I'm sorry for missing information. As FormBorderStyle.None can not manage from taskbar, i set ShowInTaskBar property to false, after that can not minimize form
koraysamsun | Fri, 28 Sep 2007 09:44:00 GMT |
Check this thread.
nobugz | Fri, 28 Sep 2007 09:45:00 GMT |
Hans:
What an I missing here? With the code above, If I click the button with ShowInTaskbar = True, the form mimimizes to the Taskbar. If I click on the form in the taskbar, it restores. If I click the button with ShowInTaskbar = False, the form minimizes to the lower left corner of the screen. If I double click on it, it restores. If I add your code, I can toggle the form from the Taskbar. Is that what he wants?
There is no context menu in any case.
johnwein | Fri, 28 Sep 2007 09:46:00 GMT |
I'm not sure what the OP wants. Just giving options. If you want a system menu, turn on the WS_SYSMENU style flag:
parm.Style = parm.Style Or &HA0000 ' Turn on the WS_MINIMIZEBOX and WS_SYSMENU style flags
nobugz | Fri, 28 Sep 2007 09:47:00 GMT |
Thank for reply, it seems what i need, but know nothing about vb. May you send c# version of below code?
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
koraysamsun | Fri, 28 Sep 2007 09:48:00 GMT |
I posted the C# version to the linked thread.
nobugz | Fri, 28 Sep 2007 09:49:00 GMT |