|
-
Jun 22nd, 2007, 10:36 AM
#1
Thread Starter
Fanatic Member
[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.
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
-
Jun 22nd, 2007, 10:43 AM
#2
Fanatic Member
Re: [02/03] Confirm File Replacement Dialog Box
I believe there is a flag you set.
Are you using the comdlg control or API?
-
Jun 22nd, 2007, 10:47 AM
#3
Thread Starter
Fanatic Member
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.
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
-
Jun 22nd, 2007, 10:52 AM
#4
Fanatic Member
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.
-
Jun 22nd, 2007, 11:02 AM
#5
Thread Starter
Fanatic Member
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).
Last edited by 18experience; Mar 23rd, 2010 at 09:37 AM.
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
-
Jun 22nd, 2007, 11:39 AM
#6
Fanatic Member
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.
-
Jun 23rd, 2007, 12:49 AM
#7
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
-
Jun 23rd, 2007, 01:54 AM
#8
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|