Wrox Programmer Forums
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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
Old September 17th, 2004, 01:05 PM
Registered User
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to cinest Send a message via MSN to cinest
Default Size of Screen


I want to know te size of the screen.

I have the command:

Response.Write("Width = " + SystemInformation.WorkingArea.Width.ToString())

But, when I run the application, I have the following error:

Compiler Error Message: BC30456: 'Windows' is not a member of 'System'.

Can anyone help me?

Old September 17th, 2004, 11:44 PM
Friend of Wrox
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76

What is your requirement?? Do you want to get the width of the browser?

SystemInformation is part of the System.Windows.Forms namespace and you are trying to use it with a web application. to get the width of the browser, use a client side script

Old October 8th, 2004, 03:33 AM
Friend of Wrox
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts

Client Side JavaScript to get the screen resolution

<A HREF="javascript:alert('Your resolution is '+screen.width+'x'+screen.height);">
Click for your screen resolution</A>

It is not how much we do,
but how much love we put in the doing.

-Mother Theresa

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can clear the screen the screen malli_kv2 BOOK: Beginning Java 2, JDK 5 Edition 4 January 17th, 2009 12:43 AM
Draw on the screen without clearing the screen pu132 Visual Basic 2005 Basics 0 August 25th, 2006 09:03 PM
Screen Size and Java Script srotondo Classic ASP Professional 5 December 20th, 2004 07:24 PM
changing text size on screen markhardiman Classic ASP Professional 4 August 31st, 2004 07:01 AM
Screen Size bmains VB.NET 11 June 28th, 2004 02:41 AM

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