Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 12th, 2006, 02:14 PM
Registered User
 
Join Date: Mar 2006
Location: Thrissur, Kerala, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Screen Resolution

How Can I get the screen Resolution of the system?


  #2 (permalink)  
Old June 14th, 2006, 12:37 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi

This can be achieved easily by using javascript, e.g. is below:

<script>
function GetScreenResolution()
{
alert("Height=" + window.screen.height + " " + "Width=" + window.screen.width);

}
</script>




Regards
Mike



Similar Threads
Thread Thread Starter Forum Replies Last Post
screen resolution Adam H-W Classic ASP Basics 3 October 13th, 2004 09:13 PM
screen resolution miguel.ossa C# 2 October 9th, 2004 11:58 PM
Re sizing according to screen resolution rsamanthif VB How-To 2 August 22nd, 2004 01:24 PM
screen resolution mistry_bhavin Pro VB.NET 2002/2003 0 March 13th, 2004 02:36 PM
How to detect screen resolution pb_user Classic ASP Basics 1 August 24th, 2003 01:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.