0

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?

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
user687459
  • 143
  • 5
  • 17

1 Answers1

0

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.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770