Click here to Skip to main content
11,929,539 members (57,478 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0 Forms
i am developing a windows application using .net 4.0 c# and my problem is i can't able to set full screen in any dekstop resolution.
if i set window state to maximize then form goes to maximize but it's control not set and they look like unmanaged.
kindly suggest me .....

Posted 5-Jul-12 7:46am
Edited 5-Jul-12 7:51am
How a control can "look like unmanaged"? What do you mean by "unmanaged"? It does not make any sense.
Add the tag "Forms".
Wes Aday 5-Jul-12 12:58pm
This makes no sense at all.
Of course, buy I think I can guess what it is; please see my answer.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The question is not formulated correctly (please see my comment to the question); I can just guess what do you mean.

You need to develop a decent form layout. No absolute positioning anymore; everything should be based on nested panels, the panels and all other controls should be docked using the property System.Windows.Forms.Control.Dock and System.Windows.Forms.Control.Padding, set appropriate MinimumSize and MaximumSize for the forms, etc.
Please see:[^],[^].

Sometime you can also adjust layout during run time by overriding one or more of the virtual methods like OnClientSizeChanged, OnSizeChanged, OnResize, OnResizeBegin, OnResizeEnd, but usually, if layout is simple enough and correct, it won't be necessary.

Please see my past answers:
Zom Out malfunctions when Screen resolution changes[^],
how to dock button so that it can adjust with the form[^] (will find a rudimentary code sample here).

See also:
GUI Apperance - C#.Net[^].

Espen Harlinn 5-Jul-12 14:12pm
5'ed! - as usual :-D
Thank you, Espen.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 5 Jul 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100