MS Common Dialog Box

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

  • : 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?
  • 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 ::..

Sign In or Register to comment.

Howdy, Stranger!

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

Categories