If I am in Word and I say File Open, it displays files of type All Files. If I have a Compressed Folder in the current location, I can right click on that folder and Extract All. Then if I extracted a filetype that Word can read, I can click on the file I just extracted and opened this is Word. All from saying File Open. I want to replicate this behavior in my .NET code.
Maybe I am missing a property when I create my OpenFileDialog, but if I right click on the same file as above, I do not get a context menu that will let me Extract All. Why not? I get nothing. This is my .NET code:
Is there something else I need which perhaps Word is providing which is making happen what is not happening in my code?Code:Dim dlgZipFile As New OpenFileDialog dlgZipFile.Title = "Please navigate to the location of the input file" dlgZipFile.InitialDirectory = "C:\Projects\Files" dlgZipFile.Filter = "All Files (*.*)|*.*" dlgZipFile.FileName = "" If dlgZipFile.ShowDialog <> Windows.Forms.DialogResult.OK Then Return False




Reply With Quote