# DesktopWindow's Implicit Instance should be turned off by default

**URL:** <https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341>\
**Category:** Bugs and Feature Requests\
**Created:** [February 23, 2024, 12:15pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341 "2024-02-23T12:15:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:15pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/1 "2024-02-23T12:15:02Z")

</div>

DesktopWindow’s Implicit Instance should be turned off by default.  
Feedback Case Number: 75697  
[https://tracker.xojo.com/xojoinc/xojo/-/issues/75697](https://tracker.xojo.com/xojoinc/xojo/-/issues/75697)

Please sign on if you agree.

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [February 23, 2024, 12:16pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/2 "2024-02-23T12:16:01Z")

</div>

I’m inclined to disagree.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:18pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/3 "2024-02-23T12:18:02Z")

</div>

I’ve not problem with that. However, I can think of very few reasons for it to be used and certainly not for every window. I’m not asking for the capability to be taken away, just for it to be off as a default. I’m happy to hear reasons to keep it on?

---

<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 23, 2024, 12:24pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/4 "2024-02-23T12:24:53Z")

</div>

You can do that for yourself.

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 23, 2024, 12:26pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/5 "2024-02-23T12:26:58Z")

</div>

properties should have more explanations. extra question symbol beside?  
link to docu or more hints.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:28pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/6 "2024-02-23T12:28:45Z")

</div>

> [@Emile\_Schwarz](#):
>
> You can do that for yourself.

Yes, but that doesn’t help new users. Twice this week I’ve helped people caught by this trap. Me changing my machine will not help that.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:30pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/7 "2024-02-23T12:30:20Z")

</div>

> [@MarkusR](#):
>
> properties should have more explanations. extra question symbol beside?  
> link to docu or more hints.

In an ideal world that would be the case. It would also be a massive investment in time to add links to each and every property in the IDE inspector panel. I’m not sure that is worth the effort, or should I say there are more important things to fix.

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [February 23, 2024, 12:39pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/8 "2024-02-23T12:39:38Z")

</div>

So what is the implication for new projects if that is off by default?

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:40pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/9 "2024-02-23T12:40:42Z")

</div>

People will not be able to write code like this:

```auto
// Window2 is the class name of a window.
If Window2.Visible Then
   // Do some things.
End if
// This would cause Window2 to be instantiated and shown, if Implicit instance is turned on.

```

If you had a global tool palet that you wanted visible at all time you could turn on Implicit Instance and have access to it quickly without the need for a global reference to it.

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [February 23, 2024, 12:42pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/10 "2024-02-23T12:42:44Z")

</div>

Sure, but what will I need to do instead? Here I have a new project, and I’ve added a few controls etc. What happens when I run it?

Presumably in the IDE I see the Window as always. Or does the IDE come up entirely blank and I have to add the window?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 23, 2024, 12:44pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/11 "2024-02-23T12:44:02Z")

</div>

i don’t think so.  
it need a hover over the base propertie label, and a key to identity as example class name/ propertie.  
for the xojo admins it could be easy drag and drop url link from help into propertie.  
most of all properties are self explaining.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:44pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/12 "2024-02-23T12:44:07Z")

</div>

Nothing would change. New projects would still contain a window.

The main window is still instantiated for you by Xojo even if you turn off implicit instance. Part of the Application definition is the Default window.

The only thing that would change is that references like:

```auto
If Window2.visible then

```

would report an error.

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 23, 2024, 12:46pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/13 "2024-02-23T12:46:34Z")

</div>

for better understanding the “main” window in default project should be created in app open event by default.  
currently its hidden in the app appearance default window propertie.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:48pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/14 "2024-02-23T12:48:56Z")

</div>

It doesn’t need to. The red highlight shows which window will be created at application startup. It is easy for new users for it to stay that way.

 ![Screenshot 2024-02-23 at 12.47.40](https://forum.xojo.com/uploads/default/original/3X/3/8/385d436d4cf086980d667fc4e4b765dd89a4491b.jpeg)

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 23, 2024, 12:49pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/15 "2024-02-23T12:49:44Z")

</div>

you know this, new users not, that was my point.  
the default window is Implicit Instance as tim already mentioned.  
if apps need to have a login, the trouble starts … with many questions how to do.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:50pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/16 "2024-02-23T12:50:23Z")

</div>

That’s not the focus of this request. It has nothing to do with Implicit Instance. You can do it your way by selecting “None” as the Default window.

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [February 23, 2024, 12:57pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/17 "2024-02-23T12:57:01Z")

</div>

> [@Ian\_Kennedy](#):
>
> Implicit Instance should be turned off by default

i mean if this would be off by default, then default project should not use Implicit Instance too.  
intead a default project with the use of app open event.

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [February 23, 2024, 12:57pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/18 "2024-02-23T12:57:47Z")

</div>

Has this been discussed before? I seem to recall something, years ago, as to what the benefit of the existing setting of implicit instance is. Anyone remember what that was?

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:58pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/19 "2024-02-23T12:58:25Z")

</div>

The default window is not created because of Implicit Instance. Turn off implicit instance and the Default window behaviour still the same. The two things are not related in any way.

Implicit instance simply means that references to the class name cause an instance of the window to be created and (optionally) shown if one does not already exist.

Default window defines which window the Application startup code will instantiate and show for you. This happens even if Implicit instance is turned off. This is not happening because of Implicit instance.

Implicit Instance \<\> Default window

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2024, 12:59pm UTC](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341/20 "2024-02-23T12:59:14Z")

</div>

> [@TimStreater](#):
>
> Has this been discussed before? I seem to recall something, years ago, as to what the benefit of the existing setting of implicit instance is. Anyone remember what that was?

- Porting VB6 code to Xojo was made easier by this setting.
- Global floating windows are simpler to access via the class name.

Both of these things are a rare use case.

[Next page](https://forum.xojo.com/t/desktopwindows-implicit-instance-should-be-turned-off-by-default/79341.md?page=2)
