OpenDialog disappears while running my program

85 Views Asked by At

I'm using Borland C++Builder 6.

TOpenDialog disappears while running my program.

What can be the reason?

Which property on the form\open dialog is responsible for this behavior?

1

There are 1 best solutions below

0
Remy Lebeau On

Dialogs do not just disappear. Either it was intentionally closed, or it is probably hidden behind your main window. Unfortunately the VCL in BCB6 suffers from z-order issues, which were fixed in later versions. Try calling GetOpenFileName() directly so you can provide an owner window to avoid any z-order problems.