View Full Version : Screen Size

05-04-2011, 11:37 PM
I am working on some asp.net development and I am trying to make my web form auto resize pending the screen it is displayed on. At the moment it always displays with a large "chunk" of white space to the right of the screen. I have done some digging and found commands such as
using System.Windows
using System.Windows.Forms
using System.Windows.Navigation

But, I am also using visual studio 2010 and these are not valid paths in VS. Also variations on these (eg using System.Web.Forms) does not work either...

I am new to this, and it is driving me nuts... It is seemingly such a simple concept that everyone seems to inherently do (when I am viewing web apps, or even pages, they always seem to "auto-fit")... why is this so difficult?

05-05-2011, 04:26 PM
Hey alykins,

Are you making a web page? Because these namespaces below are used for Windows applications, and therefore don't apply. "using System.Web.Forms...where are you putting that? As far as screen size is concerned, this is more of a client-side (CSS/Javascript) topic.

Again, you said "web form", so I'm assuming you're making a web page.