# Enable MenuItem

**URL:** <https://forum.xojo.com/t/enable-menuitem/14613>\
**Category:** Getting Started\
**Created:** [February 26, 2014, 11:19am UTC](https://forum.xojo.com/t/enable-menuitem/14613 "2014-02-26T11:19:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_De\_Backer](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@Carlos\_De\_Backer](https://forum.xojo.com/u/Carlos_De_Backer)\
**Post date:** [February 26, 2014, 11:19am UTC](https://forum.xojo.com/t/enable-menuitem/14613/1 "2014-02-26T11:19:02Z")

</div>

I have one MainMenuBar with two MenuItems (Customers, Suppliers). AutoEnable=On for both MenuItems. When I Click on one MenuItem (e.g. Customers) a new window is generated based on DetailWindow. This works fine. However, the second MenuItem is disabled (e.g. Suppliers). So, it is not possible to open both Windows. When I close the open Window, both MenuItems become available.

How can I avoid that all MenuItems are disabled?

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [February 26, 2014, 11:36am UTC](https://forum.xojo.com/t/enable-menuitem/14613/2 "2014-02-26T11:36:22Z")

</div>

Set the MenuHandler for Suppliers in App instead of in the Window DetailWindow.

You can have done that mistake involuntarily; this happens to me sometimes, so now when I press cmd-shift-e (ctrl-shift-e), I check what I can seee in the Add an event window (or whatever its name is (I do not have Xojo open at this time).

---

<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, 5:05pm UTC](https://forum.xojo.com/t/enable-menuitem/14613/3 "2020-10-29T17:05:55Z")

</div>


