"This item does not exist" error

“Nothing works” is such a blanket statement. Make a simple example of what you do and post it. Then we can have a look.

I am finally able to get the OpenDatabase method to work to connect the app to the database file on my hard drive. The problem was that the method and Properties which were called from the MainMenuBar, were not inside the Main Window (I have 3 windows in this project). So now choosing the file open command from the menubar opens a file browser which then can select and connect to the SQL file. It doesn’t do anything else yet, but I am glad I got this working and understand also where I went wrong.

The other problem I don’t understand still where it goes wrong is this:
“StoryCraftWindow.OpenDatabase, line 9
This item does not exist
NewStoryButton.Enabled = True”

The NewStoryButton is inside a Container (set to Private). That container is on a Pagepanel which is placed on the Main Window.
The method that calls that button is in the Main Window.

That button is found when I place it directly on the MainWindow, so I gues the reason it cannot be found is because of the Container.

I never used Container(s), so I ask this question:

Why are-you using Containers ?

There was a similar question in this forum two or three days ago.

Use: Container_Control.NewStoryButton to call the object you want to access to My_Button if it is located inside a Container Control…

[quote=442272:@Emile Schwarz]I never used Container(s), so I ask this question:

“Why are-you using Containers ?”

Because of the video that explained how easy it is to keep objects together, but I feel it’s not very helpful and confusing. So it’s probably more practical to place them directly on the Windows.

“There was a similar question in this forum two or three days ago.”

I tried this in many variations, but I am not able to Crete that connection.

Use: Container_Control.NewStoryButton to call the object you want to access to My_Button if it is located inside a Container Control…[/quote]

Containers can be very useful, but I don’t think you’re using it properly.

That won’t work if the button is marked as private. Besides

[quote=441724:@Norman Palardy]Doing this is not recommended. I’d go so far as to say this is a bad practice.

Any control, window, container should be treated as a black box where you do NOT reach down into its guts to make changes like this. The reason ? If you DO reach down into the guts then you have a much harder time changing the innards to a better / different implementation without also changing everything that does reach into it from outside.
[/quote]