You must Sign In to post a response.
  • Category: .NET

    Disable drag option for openfileDialog item in c# ( WPF)

    how to restrict drag and drop a item from OpenFileDialog box in wpf.

    Description:
    disable drag option When user drag and drop any item on application from OpenFileDialog.

    How can I do this can any one any suggest me?
  • #768941
    Hai Rahul,
    The disable option restriction for the dag and drop is not straight forward. You need to write some custom logic and code to make this happen for the OpenFileDialog window.
    Below is the link where you can find the work around and the code snippet to do the same:

    https://www.codeproject.com/Articles/19566/Extend-OpenFileDialog-and-SaveFileDialog-the-easy?msg=5205697#xx5205697xx

    Hope ti will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


  • Sign In to post your comments