Shell components

el_rooky
el_rooky used Ask the Experts™
on
I have a ShellComboBox and a ShellListView components in a D7 form. How do I select a folder (could be a special folder) by giving its CSIDL? For example, by pressing a button I want to change the folder selection in the comboBox and in the ListView. The folder I want to select, might or might not be in the ListView.
thanks

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
I do not have Delphi 7 installed, but in Delphi 6 (and I would assume in Delphi 7 as well), the ShellComboBox has a Path & Root property which you can set at runtime.

Regards,

Farshad R. Vossoughi
FarshadV's Comment can complete ListView but comboBox old items disappear.this is not expected;
like   .root:='c:\winnt'.
FarshadV's Comment can complete ListView but comboBox old items disappear.this is not expected;
like   .root:='c:\winnt'.
el_rooky:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial