Ticket Q561682
Visible to All Users

WinExplorerView for File Management

created 11 years ago

Hi team,

I intend to use WinExplorer View for File Management.
So I need some basic actions like copy/paste/cut/delete/rename file(s), New Folder etc…
As i see in demo project <GridMainDemo> and module <WinExplorer View (File Manager)>, there is no sample code for the above actions.
Are you planning to make a relevant module, or any other proposal?

Thanks
Christos

Answers approved by DevExpress Support

created 11 years ago (modified 7 years ago)

Hello,
This is a demo that shows how the WinExplorerView can work with a file system. You need to implement the mentioned functionality in your project by yourself.
I have attached a simple project demonstrating how to delete and copy a file name via a context menu. Change the "directory" variable to a path of the desired folder on your computer. Feel free to contact us if you need any further assistance.

    Show previous comments (3)
    Andrew Ser (DevExpress Support) 11 years ago

      Hello,
      I've attached this project in VB.NET. Please check it.

        The biggest problem with the examples in this thread is that they do not work anymore. For example, try running these examples in v17.2. I would truly like to see a working example of this concept since this ticket is referenced to over and over again by other tickets.

        Andrew Ser (DevExpress Support) 7 years ago

          Hello Philip,
          It looks like the example doesn't work on your side because the folder you specified has other folders. The code in the example throws an exception on an attempt to obtain an icon for a folder using the Icon.ExtractAssociatedIcon method. I've removed this method and wrote another method that obtains icons for both folders and files successfully. Please see the attachment.

          P.S. I also updated the example in my answer above.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.