HI Darrel,
I will try to explain. The significant headache is to create a universal
interface fitting any screen size. If the user resizes the browser it's a
good idea to adopt the interface to its needs. I'm trying to replace some of
the rulers made by JPG/GIF images by something more flexible like panels, or
simply drawing on the form, it's possible but I need to know the real size
of current frame where I'm drawing on. That's why this question appeared.
From one size I could use something standard like fill the frame, etc. but
if I need to modify the color using the position of the line it's harder, I
need to know the line length to draw it correctly.
If anybody can propose anything more efficient it would be nice, but I'm
currently seeing only this solution.
If I could get the browser window/frame size while the user resizes it, then
it would solve these problems because it's possible to recreate the
graphics, it's fast.
Another one method is - to use JAVA scripts to draw on the remote side
directly without any post backs. More efficient way, but is it really easier
for programming?
Just D.
"darrel" <no*****@hotmai l.com> wrote in message
news:O%******** ********@TK2MSF TNGP10.phx.gbl. ..
How can we get the browser window size from C# codebehind? What's the
easiest way to do that?
You'd have to grab the information client side with javascript and send it
back to the server on postback.
-Darrel