
Need help with commonon dialog not doing doevents
Quote:
> I use commondialog in different parts of a program, but I have events
> that need to be procoessed regularly. IIs there any way to get
> commondialog to issue a doevents if the user is just waiting at the
> prompt? Is there another control that can do this ( I dont
> think commondialog can..)? Or is this a Microsoft bug?
> Michael
> ---
> Michael Benson
> WWW: http://bacon.gmu.edu/~mbenson
the common dialog box is app modal window. once it waits for user response, it holds you
app from doing anthing further. this is not a bug, it is by design.
what i am going suggest is like a joke.
copy the title bar, control box, etc. into a picture box, and place it on the calling
form. when you want to show it, set it to be visible , otherwise , set it to be
invisible. this picture box looks like a dialog box (you can place a command button in
it to wait for user response and write a few lines of code to do anything.)
to your user, this is a dialog box. to you, it is NOT an app modal window.
rgds
Jeff Hong YAN