.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Problem with screen Resolutions?

Posted By: chandrakant     Posted Date: May 20, 2011    Points:5   Category :C#
I have developed a c#.Net 2008 application. In which maximum forms are opend maximise. Currently my PC is 17 inches.
Whenever I open my application in 21 inches monitor, the form looks in small size and rest of the screen looks empty.
And Whenever I open my application in smaller size monitor, it cuts the some part of project.

What should I do ?
Is there any solution for it ?
Please help me.

Author: Amit Mehra             
Posted Date: May 20, 2011     Points: 20   


Are you using asp.net or windows application?

Please "Mark As Answer " if this post help you.
Author: Ravishankar       [Moderator]   Accepted Answer   
Posted Date: May 20, 2011     Points: 40   

Hi Chandrakant,
Thank you for sharing you query, Your query solve?
If not then please check what resolution you have given for your application.In the property section,Window screen option.
Please let us know if still have the same issue.

Thanks and Regards
Ravishankar Singh

Ravishankar Singh
Author: Maverick             
Posted Date: May 23, 2011     Points: 20   


If it is a web application provide the width of your control in percentage instead of pixels.

Hope it helps

Author: chandrakant             
Posted Date: May 23, 2011     Points: 20   

Hi Ravishanker,

Thanks for your reply.

I am using Windows application and the resolution are 1000*760.


Author: Narayanan             
Posted Date: July 12, 2011     Points: 20   

Get Screen resolution
try this code:
int CurrentScreenWidth = Screen.PrimaryScreen.Bounds.Width;
int CurrentScreenHeight = Screen.PrimaryScreen.Bounds.Height;
this.Width = CurrentScreenWidth;
this.Height = CurrentScreenHeight;

Regards, Lakshmi Naraayanan.S

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend