Recent

Author Topic: Problm with desiger recognizing a dialog  (Read 327 times)

waltfair

  • New Member
  • *
  • Posts: 21
  • Walt Fair, PHD, PE. Engineer and software junkie
Problm with desiger recognizing a dialog
« on: June 05, 2023, 10:53:17 pm »
I have a small program that needs the TFileOpen Dialog.
I added the dialog to the form and it shows both on the form and in the designer-generated code for the TForm, but when I try to use the dialog with OpenDialog1.Execute, the compiler complains that the OpenDialog1 identifier is not found. The Component List clearly shows the component.
I have had similar trouble with other components added to the form as well, such as TEdit.
Is there anything special that needs to be done to make the components available to my code?

cdbc

  • Hero Member
  • *****
  • Posts: 611
    • http://www.cdbc.dk
Re: Problm with desiger recognizing a dialog
« Reply #1 on: June 05, 2023, 11:54:42 pm »
Hi
Attached is a quick'n'dirty, that works, maybe you can spot a difference to yours...
Regards Benny
If it ain't broke, don't fix it ;)

 

TinyPortal © 2005-2018