# Capturing the size of a form in dialog

**URL:** <https://forum.servoy.com/t/capturing-the-size-of-a-form-in-dialog/3709>\
**Category:** Classic Servoy\
**Created:** [February 19, 2005, 3:48pm UTC](https://forum.servoy.com/t/capturing-the-size-of-a-form-in-dialog/3709 "2005-02-19T15:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 19, 2005, 3:48pm UTC](https://forum.servoy.com/t/capturing-the-size-of-a-form-in-dialog/3709/1 "2005-02-19T15:48:02Z")

</div>

Hello,

is there a way to figure out the size and position of a formInDialog on closing (the last position/size it had)?  
application.getWindowSize related functions deliver the size of the form behind the form in dialog (the main form underneath), it seems…

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)\
**Post date:** [February 20, 2005, 7:46pm UTC](https://forum.servoy.com/t/capturing-the-size-of-a-form-in-dialog/3709/2 "2005-02-20T19:46:17Z")

</div>

Could you not capture the size of the window as it was opened, and insert the into a global, or create a table for window specs to refer to in your method?

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 20, 2005, 8:58pm UTC](https://forum.servoy.com/t/capturing-the-size-of-a-form-in-dialog/3709/3 "2005-02-20T20:58:20Z")

</div>

I want to remember the window sizes. Some user have big screens and if you use table view and anchors resizing is very useful. But I see no way of how I can capture the size the user chose to have…
