Home All Groups Group Topic Archive Search About
Author
7 May 2005 3:16 AM
neo00
Hi,
I have got a webform. I want to get the current size of the user window such as 19", 17" or 15". Later on, I want to resize my webform's window size respect to user's window's size. Then I want to make false the enable state of resize icon of the webform. How can I do this operation?
Thanks. -- neo00 ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------

Author
7 May 2005 11:39 AM
Scott M.
It's a bit more involved than this.  You can't get the user's monitor size
in inches (that doesn't matter anyway).  What you want to get is the
client's screen resolution.  This can be accomplished only with client-side
code using the "screen" object.  You would then need to pass this data to
the server so that the controls could be positioned accordingly.

There is no "resize icon" on a webform.  Generally speaking, you determine
who your audience is in terms of resolution and build your page for that
size.  Right now, 800 x 600 is the most common screen resolution for the
general public.  The easiest way to build a page for this resolution is to
add a 1 row, 1 column 770 pixel wide table to a blank web form (770 pixels,
not 800 because of the scroll bar and border of the browser will take up
about 30 pixels).  Then, you build your normal page inside this 1 cell,
making sure not to put more than 770 pixels wide of content into it.


Show quoteHide quote
"neo00" <neo00.1on***@mail.codecomments.com> wrote in message
news:neo00.1onltp@mail.codecomments.com...
>
> Hi,
> I have got a webform. I want to get the current size of the user window
> such as 19", 17" or 15". Later on, I want to resize my webform's window
> size respect to user's window's size. Then I want to make false the
> enable state of resize icon of the webform. How can I do this
> operation?
> Thanks.
>
>
>
> --
> neo00
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>