Results 1 to 4 of 4

Thread: [RESOLVED] common dialog problem

  1. #1

    Thread Starter
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Resolved [RESOLVED] common dialog problem

    im having a problem with comm dialog box control whenever i try to save a file it dont ask me to replace a file if it already exists so any body so how can i make it to ask whether to replace the file if it already exists

    Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: common dialog problem

    Code:
    Public Const OFN_OVERWRITEPROMPT = &H2&
    Declare the above and set the flag before saving to OFN_OVERWRITEPROMPT

    These are the other constants for File Open/Save Dialog Flags

    Code:
    Public Const OFN_READONLY = &H1&
    Public Const OFN_HIDEREADONLY = &H4&
    Public Const OFN_NOCHANGEDIR = &H8&
    Public Const OFN_SHOWHELP = &H10&
    Public Const OFN_NOVALIDATE = &H100&
    Public Const OFN_ALLOWMULTISELECT = &H200&
    Public Const OFN_EXTENSIONDIFFERENT = &H400&
    Public Const OFN_PATHMUSTEXIST = &H800&
    Public Const OFN_FILEMUSTEXIST = &H1000&
    Public Const OFN_CREATEPROMPT = &H2000&
    Public Const OFN_SHAREAWARE = &H4000&
    Public Const OFN_NOREADONLYRETURN = &H8000&
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: common dialog problem

    Or you can use the built-in constants of the common dialog control.
    cdlOFNxxxxx constants (i.e., cdlOFNOverwritePrompt)
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  4. #4
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: [RESOLVED] common dialog problem

    Or a dir check...
    Option Explicit should not be an Option!

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