• 0

Delphi: Open form and wait until it closes


Question

I've put a lot of thought to this, but nothing seems to be working.

Basically what I'm trying to do is this: My program scans a folder for duplicate files, when duplicate files are found, it pops up a form asking what the user would like to do to fix the conflict. Once the user closes this form it carries on searching.

At present it pops up the form, but the procedure carries on, spamming the user with messages, and the "Search Complete" dialog.

I think the easiest way would be to create a variable called something like "duplicateformopen", setting it to yes when opened, and having the duplicate form set it to false when closing, and having a timer detect when the variable has been set to false, then somehow use this to continue the method.

Basically the above solution would be a round-about and ugly way of doing this, I'd appreciate any input.

This is in Borland Delphi 2005.

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I hate to say it but MacOS being certified UNIX had this for years yet it took Linux over 30 years to have this feature. 🤦🏻‍♂️🤷🏻‍♂️
    • 65-inch Samsung Crystal UHD DU8000 series Smart TV is back to its lowest price by Fiza Ali Amazon is once again offering the 65-inch Samsung DU8000 Series Smart TV at its lowest price. The DU8000 offers a Crystal UHD LED panel that delivers a native 3,840 × 2,160 resolution while the Crystal Processor 4K employs AI‑driven upscaling to optimise lower resolution content to 4K clarity. For picture quality, the DU8000 supports a comprehensive High Dynamic Range (HDR) suite including HDR10, HDR10+, and HLG alongside Film and Filmmaker Modes. Dynamic Crystal Colour enhances colour volume for richer, more accurate hues, and Mega Contrast with UHD Dimming boosts depth and definition in both bright and dark scenes. Furthermore, the Motion Xcelerator engine maintains smooth motion clarity at 60Hz. Gaming on this model should be good with Auto Low Latency Mode (ALLM), Variable Refresh Rate (VRR) support, and HGiG customisation, promising minimal input lag and fluid frame rates. HGiG (HDR Gaming Interest Group) customisation ensures that HDR content in games is displayed as the developers intended by applying standardised tone mapping tailored to gaming, rather than general HDR video settings. This helps prevent overly dark shadows or blown-out highlights, maintaining detail and visual consistency across a wide range of game environments. Moreover, a dedicated Gaming Hub offers streamlined access to cloud gaming services and console content. Audio is driven by a 20W (2‑channel) system featuring Samsung’s Object Tracking Sound Lite (OTS Lite) and Q‑Symphony which synchronises TV speakers and compatible soundbars for multidimensional sound without overlap. Adaptive Sound analyses each scene to optimise dialogue and effects, while dual‑device Bluetooth pairing allows wireless connection of headsets or external speakers. Furthermore, the Tizen Smart TV platform offers a built‑in Bixby voice control and compatibility with Alexa and Google Assistant. Connectivity options include three HDMI 2.0 ports (with eARC/ARC), two USB‑A ports, Ethernet, optical digital audio out, RF in, and dual‑band Wi‑Fi 5 (802.11ac). Accessibility features include multi‑language Voice Guide, high‑contrast and zoom modes for low‑vision users, closed captions and sign‑language zoom for the hearing impaired, and slow‑repeat buttons and a remote‑control app option for those with motor impairments. 65-inch Samsung Crystal UHD DU8000 Series HDR Smart TV: $399.99 (Amazon US) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • I'm not exactly sure where to post this, so move it if needed. Where can I get a Windows 11 Pro upgrade key cheap? The one I bought through Neowin Deals no longer works, and I just bought a new laptop & want to upgrade from Home to Pro.
    • Except Rolling Releases. No EOL, continuous updates.
  • Recent Achievements

    • Week One Done
      Stephen Leibowitz earned a badge
      Week One Done
    • Week One Done
      Homayoun Hotak earned a badge
      Week One Done
    • Dedicated
      Profit earned a badge
      Dedicated
    • One Month Later
      hhgygy earned a badge
      One Month Later
    • Week One Done
      hhgygy earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      640
    2. 2
      ATLien_0
      240
    3. 3
      Xenon
      169
    4. 4
      neufuse
      151
    5. 5
      +FloatingFatMan
      124
  • Tell a friend

    Love Neowin? Tell a friend!