Results 1 to 8 of 8

Thread: [02/03] Confirm File Replacement Dialog Box

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    [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..."

  2. #2
    Fanatic Member
    Join Date
    Oct 2003
    Posts
    1,005

    Re: [02/03] Confirm File Replacement Dialog Box

    I believe there is a flag you set.
    Are you using the comdlg control or API?


  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    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..."

  4. #4
    Fanatic Member
    Join Date
    Oct 2003
    Posts
    1,005

    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.


  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    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..."

  6. #6
    Fanatic Member
    Join Date
    Oct 2003
    Posts
    1,005

    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.


  7. #7
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width