[02/03] Confirm File Replacement Dialog Box
Just thought I would ask before I start coding this myself.
Anybody know if there is a way to get the Confirm File Replacement Dialog Box? You know, the one with with "Yes", "No", and "Yes To All"? By the way, if I do have to make my own, I am going to add a "No To All" button.
Re: [02/03] Confirm File Replacement Dialog Box
I believe there is a flag you set.
Are you using the comdlg control or API?
:)
Re: [02/03] Confirm File Replacement Dialog Box
Neither. What are those? I mean, I know about API calls, although not much. But, I don't know what comdlg means.
Re: [02/03] Confirm File Replacement Dialog Box
In you 2003 or 2005 toolbox should be File Open/Save control that you can put on your form. Just set some of the properties.
If not on toolbox, then add it to your toolbox.
:)
Re: [02/03] Confirm File Replacement Dialog Box
I don't think that is what I am after. I am talking about when you select a few files, copy them, and then try to paste them. I am trying to emulate this screen (see pic).
Re: [02/03] Confirm File Replacement Dialog Box
That is a function of the Windows system.
Using the control from the toolbox will talk to the windows system. So when you overwrite a file you should get this box as long as you have selected the multiple file selection flag on the control or using API code to do it.
It can be done... I just don't have the code to show you.
Sorry I couldn't be a better help.
:)
Re: [02/03] Confirm File Replacement Dialog Box
I would make my own for this, that way you can customize it as you see fit
I made a messagebox a few months back that had a count down timer, I'll post the code for it soon
Re: [02/03] Confirm File Replacement Dialog Box
That dialogue will be displayed if you use the Windows Scripting Host to copy or move your file(s). In VB 2005 you can use the methods of the My.Computer.FileSystem, which wraps the WSH. In previous versions you have to add a reference to the WSH library and create a FileSystemObject.