Programmatically select files using C#
When the user selects file(s) or/ and folder(s) , I want to know th开发者_运维问答e names of the selected file(s) or/and folder(s) programmatically.
I think that if I send the message lvm_selected to the explorer window, it might return me the selected item.
But as this is just a thought, it would be nice if anyone can help me out it in letting me know the proper way .
I would prefer this in C#, but C++ shall also be fine.
Thanks in advance .
http://www.codeproject.com/KB/shell/AutomateShellWindow.aspx Note the method is broken by UAC. Write a BHO if your customer have UAC on.
精彩评论