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


Top 5 Contributors of the Month
david stephan

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#
Hello,
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.


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

Hi,

Are you using asp.net or windows application?

Thanks,
Amit
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   

Hello,

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

Hope it helps

Thanks,
Maverick
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.


Chandrakant

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

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

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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