Atozed Forums
Size of the desktop (screen) of the client device - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Size of the desktop (screen) of the client device (/thread-2076.html)



Size of the desktop (screen) of the client device - Сергей Александрович - 10-22-2020

how do I find out the size of the desktop (screen) of the client device?


RE: Size of the desktop (screen) of the client device - kudzu - 10-22-2020

Check the demos, there is a page in one of the demos that shows this.


RE: Size of the desktop (screen) of the client device - Alexandre Machado - 10-26-2020

You can obtain the size of the *browser* window easily:

WebApplication.FormHeight and WebApplication.FormWidth

or, from the form itself, you can check its sizes using properties Width and Height.

It doesn't contain the actual size of the screen though (which is for the vast majority of the cases irrelevant).

Can you please elaborate on why do you need the sizes of the screen?


RE: Size of the desktop (screen) of the client device - Сергей Александрович - 11-17-2020

I wanted to analyze the size and change the screen content depending on it. But I realized that it would be better if the formatting was applied correctly. Thank you for the question you asked. He directed me to a different way of solving the problem.


RE: Size of the desktop (screen) of the client device - kudzu - 11-17-2020

In addition to screen size you can use anchors and aligns, or a template with a responsive layout. We have demos for all of these including screen size detection.