# Where is desktopWindow.implicitInstance

**URL:** <https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535>\
**Category:** General\
**Created:** [October 3, 2022, 9:53pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535 "2022-10-03T21:53:45Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Pitchford](https://forum.xojo.com/user_avatar/forum.xojo.com/james_pitchford/32/4568_2.png) [@James\_Pitchford](https://forum.xojo.com/u/James_Pitchford)\
**Post date:** [October 3, 2022, 9:53pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/1 "2022-10-03T21:53:45Z")

</div>

Has this property been removed from the IDE - I can’t see it any more.

It is there if I change to a Window, but not for a desktopWindow.

Inspector Behaviour… says its there - but not on my IDE.

Senior moment?

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [October 3, 2022, 10:00pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/2 "2022-10-03T22:00:39Z")

</div>

Moved to:  
 ![image](https://forum.xojo.com/uploads/default/original/2X/1/12b79f1d02ee446d6069118c992fd47418ee92cc.png)

---

<div class="post-metadata">

**Author:** ![James\_Pitchford](https://forum.xojo.com/user_avatar/forum.xojo.com/james_pitchford/32/4568_2.png) [@James\_Pitchford](https://forum.xojo.com/u/James_Pitchford)\
**Post date:** [October 3, 2022, 10:12pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/3 "2022-10-03T22:12:16Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [October 3, 2022, 11:35pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/4 "2022-10-03T23:35:03Z")

</div>

“Windows Behavior”? This implies (no pun intended) that it’s something specific to the Windows operating system. Should be “Window Behavior”.

---

<div class="post-metadata">

**Author:** ![Gilles\_Plante](https://forum.xojo.com/user_avatar/forum.xojo.com/gilles_plante/32/667_2.png) [@Gilles\_Plante](https://forum.xojo.com/u/Gilles_Plante)\
**Post date:** [October 4, 2022, 3:45am UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/5 "2022-10-04T03:45:01Z")

</div>

Wthat a good question it is !

---

<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:** [October 4, 2022, 7:45am UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/6 "2022-10-04T07:45:13Z")

</div>

> [@James\_Pitchford](#):
>
> Senior moment?

Yes, but not yours… 😉

---

<div class="post-metadata">

**Author:** ![Bob\_Keeney3](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@Bob\_Keeney3](https://forum.xojo.com/u/Bob_Keeney3)\
**Post date:** [October 4, 2022, 12:28pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/7 "2022-10-04T12:28:04Z")

</div>

Ug…Window Implicit Instance is such the source of confusion and subtle bugs in code that I wish they hadn’t move it to this new obscure location. I can’t tell you how many times I fixed client code where they left implicit instance on when they shouldn’t have. I don’t recall if I ever penned an “ImplicitInstance is Evil” blog post or not but I should have.

But I agree, the Label indicates that it’s for Windows, as in the OS, rather than for any window any OS.

---

<div class="post-metadata">

**Author:** ![Bob\_Keeney3](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@Bob\_Keeney3](https://forum.xojo.com/u/Bob_Keeney3)\
**Post date:** [October 4, 2022, 5:33pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/8 "2022-10-04T17:33:40Z")

</div>

Apparently I did write a blog post about it. An archive is at [https://bkeeney124.rssing.com/chan-63470789/all\_p1.html](https://bkeeney124.rssing.com/chan-63470789/all_p1.html) titled “ImplicitInstance is Evil”. 🙂

---

<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:** [October 4, 2022, 8:09pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/9 "2022-10-04T20:09:23Z")

</div>

While I agree that Implicit Instance can be confusing and lead to a lot of potential bugs, we wrote an entire ERP system that takes advantage of Implicit Instance and the fact that there is ever only one instance of a given window. So, yes, it can be confusing and lead to issues, but if you go in with your eyes open and understand the implications, it can be very useful.

---

<div class="post-metadata">

**Author:** ![Bob\_Keeney3](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@Bob\_Keeney3](https://forum.xojo.com/u/Bob_Keeney3)\
**Post date:** [October 4, 2022, 8:45pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/10 "2022-10-04T20:45:50Z")

</div>

Yeah, don’t get me wrong, I use Implicit Instance myself for certain types of windows. I’ve just fixed so many client projects that were using it incorrectly that I think it’s a subtle bug that can be maddening to figure out. Newbies get bit by it a lot because they don’t understand the implications.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [October 4, 2022, 11:31pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/11 "2022-10-04T23:31:37Z")

</div>

> [@Bob\_Keeney3](#):
>
> Newbies get bit by it a lot

Yes, so we protect the newbies by hiding it in an “Advanced” pane where they’ll never figure it out. 🤦‍♀️

---

<div class="post-metadata">

**Author:** ![Jerry\_Fritschle](https://forum.xojo.com/user_avatar/forum.xojo.com/jerry_fritschle/32/223_2.png) [@Jerry\_Fritschle](https://forum.xojo.com/u/Jerry_Fritschle)\
**Post date:** [October 4, 2022, 11:56pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/12 "2022-10-04T23:56:27Z")

</div>

> [@Julia\_Truchsess](#):
>
> hiding it in an “Advanced” pane where they’ll never figure it out.

…with a typo from which one might infer that it’s a Windows feature. 🙂

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [October 5, 2022, 3:44pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/13 "2022-10-05T15:44:31Z")

</div>

> [@Julia\_Truchsess](#):
>
> “Windows Behavior”?

It looks like a future release of Xojo will have this fixed: [#70250](https://tracker.xojo.com/xojoinc/xojo/-/issues/70250)

---

<div class="post-metadata">

**Author:** ![Thom\_McGrath](https://forum.xojo.com/user_avatar/forum.xojo.com/thom_mcgrath/32/192_2.png) [@Thom\_McGrath](https://forum.xojo.com/u/Thom_McGrath)\
**Post date:** [October 5, 2022, 6:43pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/14 "2022-10-05T18:43:45Z")

</div>

I wish implicit instance didn’t exist. It’s pretty easy to introduce your own if that’s something you need, and if I recall correctly, if it didn’t exist we could put windows in modules.

---

<div class="post-metadata">

**Author:** ![Jerry\_Fritschle](https://forum.xojo.com/user_avatar/forum.xojo.com/jerry_fritschle/32/223_2.png) [@Jerry\_Fritschle](https://forum.xojo.com/u/Jerry_Fritschle)\
**Post date:** [October 5, 2022, 7:39pm UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/15 "2022-10-05T19:39:24Z")

</div>

Thanks to Norm Palardy for this link, showing how to override Xojo defaults:

[https://documentation.xojo.com/topics/advanced\_features/setting\_default\_values\_for\_xojo\_framework\_class\_properties.html#setting-default-values-for-xojo-framework-class-properties](https://documentation.xojo.com/topics/advanced_features/setting_default_values_for_xojo_framework_class_properties.html#setting-default-values-for-xojo-framework-class-properties)

With this guidance, you can create a file called Window.defaults (or DesktopWindow.defaults–or one of each) that contains the line

ImplicitInstance=false

As stated in the doc, using the Mac path here, stick the file(s) in ~/Documents/Xojo/Overrides, then restart Xojo.

This works great for me. It’s rare that I want an implicit instance. In my own apps such will only be a main window that is always open (I’ll even quit in its Close event.) With the default now being false, gone are the days when I have to remember to turn it off when adding a new window to the project–and sometimes forget.

Thanks again, Norm 🙂

---

<div class="post-metadata">

**Author:** ![TorstenS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TorstenS](https://forum.xojo.com/u/TorstenS)\
**Post date:** [October 8, 2022, 8:50am UTC](https://forum.xojo.com/t/where-is-desktopwindow-implicitinstance/72535/16 "2022-10-08T08:50:15Z")

</div>

I tried to get the overrides (implicitInstance) in Linux working. First I put them under ~/Documents/Xojo/Overrides (thats the folder which is stated in the documentation), that changed nothing. Then I found a prepared folder under ~/.Xojo/Xojo/Xojo 2022r2/Overrides/ but that also didn’t work. The overrides work under Windows with the same settings.

Can somebody confirm that the override-Feature is working under Linux (using 2022 R2).

Edit: Well, placed the files another time in ~/Documents/Xojo/Overrides an now it works.
