By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,684 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,684 IT Pros & Developers. It's quick & easy.

How to show the file properties dialog?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
* "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

P: n/a
Why not use a pinvoke solution?


Which means?
Nov 20 '05 #3

P: n/a
* "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 discussion thread is closed

Replies have been disabled for this discussion.