Container Control in a console app

I’ve just noticed (by accidentally doing it) I can add a container control to a console/Service app. and this has me confused (not hard). How/why would I use the control?

Chinese proverb: “One fool can ask more than ten wise men can answer”

Evolution: if you make it idiot-proof, Evolution will come up with a better idiot.

Take your pick :wink:

At best, you could use it just like any other class - a container has properties and methods, and can be used without embedding it into a window. Or it might not compile at all. My guess is that it’s an oversight and really shouldn’t be available in a console app.

Strange : Dim CC as new ContainerControl auto completes, but it does not compile ; Xojo can’t find the type.

How did you add your container control, Wayne ?

It’s a bug. I don’t suggest doing it because when we fix it, you’ll likely lose any code in that control when you load that project.

That’s a terrible way to handle that.

You couldn’t. For you beta testers, you can review the fix in r3.

<https://xojo.com/issue/40074>