# Servoy 3.5.2: showFormInDialog() - problem

**URL:** <https://forum.servoy.com/t/servoy-3-5-2-showformindialog-problem/8367>\
**Category:** Classic Servoy\
**Created:** [November 7, 2007, 8:28am UTC](https://forum.servoy.com/t/servoy-3-5-2-showformindialog-problem/8367 "2007-11-07T08:28:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [November 7, 2007, 8:28am UTC](https://forum.servoy.com/t/servoy-3-5-2-showformindialog-problem/8367/1 "2007-11-07T08:28:59Z")

</div>

Parameter changes in the ‘showFormInDialog()’ function like , [y], [width], [height] values is only working after reopen the solution. Is this correct? I can reproduce this in Servoy 3.5.2 on Mac OS X 10.4.10 and Win XP Prof. SP2.

---

<div class="post-metadata">

**Author:** ![Andrei\_Costescu](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Andrei\_Costescu](https://forum.servoy.com/u/Andrei_Costescu)\
**Post date:** [November 8, 2007, 9:17am UTC](https://forum.servoy.com/t/servoy-3-5-2-showformindialog-problem/8367/2 "2007-11-08T09:17:24Z")

</div>

This is true. The following info is for smart client (web client size/position for dialogs works only partially, depending on dialog type…):

Those parameters are meant to be “initial” dialog bounds. So they will affect the dialog only the first time you open it. Then if you close/open it again, they are ignored. So, if you open a dialog at specified bounds, then move it, hide it and show it again, it will show at where the user dragged it last time - not at the initial specified bounds (this is what this behavior is for). Note that what I said before is true only if you use the same dialog (with the same specified name or with no specified name). We will change this in the docs - as it does not say they are only initial coordinates…

Anyway, in order to do what you need you can use application.setWindowLocation(…) and application.setWindowSize(…).

Another possibility - not recommended - would be to use showFormInDialog, with coordinates, but change the name of the dialog (not title) each time. But this way you would have lots of named windows laying around.

---

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [November 8, 2007, 7:31pm UTC](https://forum.servoy.com/t/servoy-3-5-2-showformindialog-problem/8367/3 "2007-11-08T19:31:44Z")

</div>

Thank you Andrei!  
It’s nice to know that it is now a little complex to test the dialog forms ![;-)]( "Wink")
