Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

MS Common Dialog Box

xeifrankxeifrank Member Posts: 55
I am using the MS Common Dialog Box to let the user select a file to open. After selecting the file, I do some heavy processing (file input and output). My problem/question is, when I select the file to open from the Open File Box (Common Dialog Box), the program begins the heavy processing before the Open File Box has closed, so it blocks some scrolling text I want the user to see on my main form. How do I make sure the Open File Box goes away, before my heavy processing begins? Is there a command to kill it? It does go away eventually, but not until ALL of my processing is completed, which IS NOT what I want.

Thanks,

Xeifrank

Comments

  • infidelinfidel Member Posts: 2,900
    : I am using the MS Common Dialog Box to let the user select a file to open. After selecting the file, I do some heavy processing (file input and output). My problem/question is, when I select the file to open from the Open File Box (Common Dialog Box), the program begins the heavy processing before the Open File Box has closed, so it blocks some scrolling text I want the user to see on my main form. How do I make sure the Open File Box goes away, before my heavy processing begins? Is there a command to kill it? It does go away eventually, but not until ALL of my processing is completed, which IS NOT what I want.

    Maybe try a "DoEvents" before the processing starts?
  • ZantosZantos Member Posts: 139
    I think he's right with the DoEvents command, because this gives windows time to "breathe" so to speak. If that doesn't work, then you can try this: (which is 99.9% effective for me and takes almost no time at all to complete)
    [blue]For[/blue] n = 1 [blue]To[/blue] 5
    DoEvents
    [blue]Next[/blue] n

    Hope that helps.
    ..:: Zantos ::..

  • Justin BibJustin Bib USAMember Posts: 0

    ________ \ http://forcoder.org \ free video tutorials and ebooks about || PL/SQL Objective-C Ruby Assembly Visual Basic .NET Go C# Perl Java PHP R Scratch Python Delphi Visual Basic Swift C++ C MATLAB JavaScript Logo ABAP Julia Rust Erlang D Awk COBOL Apex LabVIEW Alice Kotlin Transact-SQL FoxPro SAS Dart ML Clojure VBScript F# Fortran Hack Crystal Lua Scala Prolog Scheme Ada Lisp Bash || _______

Sign In or Register to comment.