For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > March 2004 > CommonDialog Box during file Overwrite









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CommonDialog Box during file Overwrite
Syed Zeeshan Haider

2004-03-28, 9:57 pm

Hello Experts,
I have VB6EE on Win98SE.

In almost all major Programs (MS and non-MS), when a user tries to overwrite
a new file over an existing file, a message box appears to confirm the
overwrite. If the user clicks "No", the message box disappears but the
common dialog box remains displayed. I have no idea how to keep common
dialog box displayed, when a user clicks "No".
Any ideas?

Thank you,
--
Syed Zeeshan Haider.
http://szh.20m.com/
http://gomusharrafgo.20m.com/

-----------------------------------
Allah says to Mankind:
"Then which of the favours of your Lord will ye deny?"


Syed Zeeshan Haider

2004-03-28, 9:59 pm

"Bob Butler" <tiredofit@nospam.com> wrote in message
news:u8i7De0EEHA.2272@TK2MSFTNGP09.phx.gbl...

> before displaying the dialog set the cdlOFNOverwritePrompt flag and the
> dialog will handle the prompting for you.


Thank you. Bob!
I should have known it earlier. It has made my task lot easier.

Thanks again!
--
Syed Zeeshan Haider.
http://szh.20m.com/
http://gomusharrafgo.20m.com/

-----------------------------------
Allah says to Mankind:
"Then which of the favours of your Lord will ye deny?"


Bonj

2004-03-28, 9:59 pm

Just pop it up again...

"Syed Zeeshan Haider" <szhatforumsNoVirusesOrSpam@hotpop.com> wrote in
message news:O9Z8QZ0EEHA.1452@TK2MSFTNGP09.phx.gbl...
> Hello Experts,
> I have VB6EE on Win98SE.
>
> In almost all major Programs (MS and non-MS), when a user tries to

overwrite
> a new file over an existing file, a message box appears to confirm the
> overwrite. If the user clicks "No", the message box disappears but the
> common dialog box remains displayed. I have no idea how to keep common
> dialog box displayed, when a user clicks "No".
> Any ideas?
>
> Thank you,
> --
> Syed Zeeshan Haider.
> http://szh.20m.com/
> http://gomusharrafgo.20m.com/
>
> -----------------------------------
> Allah says to Mankind:
> "Then which of the favours of your Lord will ye deny?"
>
>



Bob Butler

2004-03-31, 4:30 pm

"Syed Zeeshan Haider" <szhatforumsNoVirusesOrSpam@hotpop.com> wrote in
message news:O9Z8QZ0EEHA.1452@TK2MSFTNGP09.phx.gbl
> Hello Experts,
> I have VB6EE on Win98SE.
>
> In almost all major Programs (MS and non-MS), when a user tries to
> overwrite a new file over an existing file, a message box appears to
> confirm the overwrite. If the user clicks "No", the message box
> disappears but the common dialog box remains displayed. I have no
> idea how to keep common dialog box displayed, when a user clicks "No".


before displaying the dialog set the cdlOFNOverwritePrompt flag and the
dialog will handle the prompting for you.

--
Reply to the group so all can participate
VB.Net... just say "No"

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com