# application.showFormInDialog

**URL:** <https://forum.servoy.com/t/application-showformindialog/2784>\
**Category:** Classic Servoy\
**Created:** [September 28, 2004, 11:18am UTC](https://forum.servoy.com/t/application-showformindialog/2784 "2004-09-28T11:18:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [September 28, 2004, 11:18am UTC](https://forum.servoy.com/t/application-showformindialog/2784/1 "2004-09-28T11:18:41Z")

</div>

I am trying to set the width and height of a form in a dialog.

Normally I would do this:```  
application.showFormInDialog( forms.name, -1, -1, -1, -1); //use default values

````auto
Now I am trying to get this to work:```
application.showFormInDialog( forms.name, -1, -1, -1, 600); //set only the height
```. This doesn't work. What does work is:```
application.showFormInDialog( forms.name, -1, -1, 540, 600); //set width and height
```. Is this a bug or is this expected bahavior.
````

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [September 30, 2004, 9:29am UTC](https://forum.servoy.com/t/application-showformindialog/2784/2 "2004-09-30T09:29:53Z")

</div>

expected, you can set the size or location or none, but not partial
