473,396 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to show the file properties dialog?

I am wondering if it is possible to pop up the fileproperties dialog from
inside the code. I've found old methods for doing it which includes
ShellExecuteEx and passing a SHELLEXECUTEINFO struct where the lpVerb
property is set to "properties". (VB exmaple:
http://www.codeguru.com/vb/articles/1856.shtml)

I tried doing something similuar using .NET :

System.Diagnostics.Process test=new System.Diagnostics.Process();
test.StartInfo.FileName=strFileName;
test.StartInfo.Verb="properties";
test.Start();

this didn't work so well, because the StartInfo.Verbs list didn't contain
"properties". In there were only "open","edit","print" etc...

So, my question now is if there is any support for bringing up the file
properties dialog at all and if so, how do I do it?

Thanks!

/David.
Nov 20 '05 #1
3 1891
* "David Lindgren" <da************@hogia.se.REMOVE!> scripsit:
I am wondering if it is possible to pop up the fileproperties dialog from
inside the code. I've found old methods for doing it which includes
ShellExecuteEx and passing a SHELLEXECUTEINFO struct where the lpVerb
property is set to "properties". (VB exmaple:
http://www.codeguru.com/vb/articles/1856.shtml)

I tried doing something similuar using .NET :

System.Diagnostics.Process test=new System.Diagnostics.Process();
test.StartInfo.FileName=strFileName;
test.StartInfo.Verb="properties";
test.Start();

this didn't work so well, because the StartInfo.Verbs list didn't contain
"properties". In there were only "open","edit","print" etc...

So, my question now is if there is any support for bringing up the file
properties dialog at all and if so, how do I do it?


Why not use a pinvoke solution?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Why not use a pinvoke solution?


Which means?
Nov 20 '05 #3
* "David Lindgren" <da************@hogia.se.REMOVE!> scripsit:
Why not use a pinvoke solution?


Which means?


Why not convert the old solution to .NET?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Richard Muller | last post by:
Hi, I new to ASP. I have a problem with an ASP script opening a file for writing on my server. Here's how I got to this error: I downloaded a neat FileUpload ASP example from...
0
by: David Lindgren | last post by:
I am wondering if it is possible to pop up the fileproperties dialog from inside the code. I've found old methods for doing it which includes ShellExecuteEx and passing a SHELLEXECUTEINFO struct...
2
by: Henry | last post by:
I am trying to write an application that allows me to dynamically load selected Crystal Report files, read the parameters from the report file, give the user a chance to enter relevant data in a...
6
by: bryanhobson | last post by:
I'm fairly new to c#, and I am just trying to work out how a 'properties' dialog works. Currently in my code, I have an object represented by the class 'Dog'. The dog object has several...
2
by: Susan Baker | last post by:
Hi, I am (trying) to compile some code I downloaded from the internet. The sources contain references to header files - using the form : #include <pathname/file> If I change the form to...
1
by: BuddyWork | last post by:
Hello, Sorry I posted this message in the newsgroup, as I could not find an IIS group. I'm running Windows XP Professional and when I try to display the Properties dialog by pressing right...
4
by: Nathan Sokalski | last post by:
I want to give visitors to my site the option of downloading a generated ..txt file by clicking a button. I know how to generate text files, but how do I cause the browser to pop up one of those...
6
by: Sushil Prasad | last post by:
I am having problem in displaying the compiled help file. In asp.net app I have link button labeled help. On the users click of this button i do the respose.redirect to the url of the .chm file....
1
by: Iwan Petrow | last post by:
Hi, I have dynamic properties (for checkboxes Checked property which I use in Option dialog box) . After I change checkboxes check properties I use DOM to save the changed values in the config...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.