# Passing parameters to windows

**URL:** <https://forum.xojo.com/t/passing-parameters-to-windows/28085>\
**Category:** General\
**Created:** [November 15, 2015, 2:10am UTC](https://forum.xojo.com/t/passing-parameters-to-windows/28085 "2015-11-15T02:10:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Joyner](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@Ben\_Joyner](https://forum.xojo.com/u/Ben_Joyner)\
**Post date:** [November 15, 2015, 2:10am UTC](https://forum.xojo.com/t/passing-parameters-to-windows/28085/1 "2015-11-15T02:10:14Z")

</div>

How do you pass parameters to windows within a project apart from adding properties to the calling window or app?

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [November 15, 2015, 2:47am UTC](https://forum.xojo.com/t/passing-parameters-to-windows/28085/2 "2015-11-15T02:47:39Z")

</div>

Really depends on what it is you want to pass and when

If its just when you create the window initially you can add a constructor but in that case you might want to turn [implicit instances](http://documentation.xojo.com/index.php/Window.ImplicitInstance) off

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [November 15, 2015, 4:21am UTC](https://forum.xojo.com/t/passing-parameters-to-windows/28085/3 "2015-11-15T04:21:02Z")

</div>

I often add a method that I call instead of show and pass parameters to that method. The method does whatever initialization is necessary and then calls Show.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:03pm UTC](https://forum.xojo.com/t/passing-parameters-to-windows/28085/4 "2020-10-29T18:03:39Z")

</div>


