473,466 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Maximising a borderless form

Hi,

I wasn't happy with the customisability of the standard Windows form,
so I decided to implement my own. Basically what I did was extend a
borderless form and add my own borders and caption bar to it so it
looks and functions like a normal bordered sizable form. However the
only thing I can't figure out is maximising. When I maximise my form,
it fills up the whole screen and covers up the Windows taskbar. I can
understand why you would ordinarily want a borderless form to do this,
but I want my borderless form to maximise like a normal bordered form.

Can anyone help me out?

- SeanR

Nov 30 '06 #1
1 2692
Hi, just thought I'd follow up my own question since I've figured out
the answer myself.

I need to manually set the MaximizedBounds of the form before it
resizes to the Screen.WorkingArea:

this.MaximizedBounds = Screen.GetWorkingArea(this);

- Sean

On Nov 30, 3:34 pm, "SeanR" <pun...@gmail.comwrote:
Hi,

I wasn't happy with the customisability of the standard Windows form,
so I decided to implement my own. Basically what I did was extend a
borderless form and add my own borders and caption bar to it so it
looks and functions like a normal bordered sizable form. However the
only thing I can't figure out is maximising. When I maximise my form,
it fills up the whole screen and covers up the Windows taskbar. I can
understand why you would ordinarily want a borderless form to do this,
but I want my borderless form to maximise like a normal bordered form.

Can anyone help me out?

- SeanR
Nov 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nikki | last post by:
Hi, Can anybody help me in solving this problem. I m developing an application in which the main application form is borderless. now i m not able to move the application form with the help of...
1
by: SteveShanks | last post by:
Hi Al How can I set the size of an mdi child form to fill the parent windows as if it was maximised without actually maximising the form as this causes all my subsequent child forms to be...
3
by: Liz | last post by:
I need to implement dragging a borderless form by clicking/dragging on the form surface. Using the "standard" approach (setting "CanMove" flag on MouseDown, moving the form by the delta of the...
0
by: Brian Tkatch | last post by:
Been trying to figure out how to show borderless forms indside an MDI Form, without showing the border at all. Given that (in our case) only one such form needs to show at a time, we were able...
5
by: ThunderMusic | last post by:
Hi I'm currently developping a skinnable form by using a borderless form (Form.FormBorderStyle=None). Is it the right way to go in the first place? if it is. Assuming that when there is no border...
3
by: Rick | last post by:
I know I seen this before but IO cannot find it. How to you drag a borderless form in Vb.net 2005
8
by: James Arnold | last post by:
I currently have a borderless form, which I am subclassing to allow dragging & dropping: Protected Overrides Sub WndProc(ByRef m As Message) Select Case m.Msg Case 132 'Click & Drag Form...
5
by: sierra7 | last post by:
Hi I have been writing Access applications for some years now and have moved away from from the 'Switchboard' type of opening form to using a menubar accross the top of the screen and borderless...
2
by: plevintampabay | last post by:
I have a borderless form in C#. The form has an icon specified in its properties and I also have the same icon specified for the project in the project properties. When I had a border on the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.