i wonder why all of my windows become first visible after the included listbox is filled with data from a recordset that comes from a mysql- or sqlite-database.
What is the reason behind this? I think its my fault and i didn’t have placed the call of my select-method at the right place. Now the method which selects the database-records is placed in the open-event of the windows.
Is there a better way to do this? I want to see my windows before the data is populated to the listbox.
It’s because the code in the window’s open event runs before the window is shown. You could add a single mode timer to the window which will run the DB code and the window will show before the listbox is populated.