change the current explorer on commandbar click

Add-in Express™ Support Service
That's what is more important than anything else

change the current explorer on commandbar click
 
Vivek Jain




Posts: 19
Joined: 2006-05-26
Hi Fedor,

I want to change the current explorer or can say i want to change the focus to diffent folder on click on my Adx-add-in command bar Button.
Please help mt out.

Thanks In advance.

Best Regards,
Vivek Jain
Posted 20 Jun, 2006 00:55:30 Top
Fedor Shihantsov


Add-in Express team


Posts: 1188
Joined: 2005-01-11
Vivek,

Use CurrentFolder property of Explorer object.

pseudocode: ActiveExplorer.CurrentFolder = MyFolder;
Posted 20 Jun, 2006 12:48:45 Top
Vivek Jain




Posts: 19
Joined: 2006-05-26
Thanx Fedor,

Actually i was trying the same but i was not getting the intellisense after I put the dot after ActiveExplorer method and that is because, i was not putting up the braces after the ActiveExplorer method.

so, "ActiveExplorer.CurrentFolder" was not working
and "ActiveExplorer().CurrentFolder" is working perfectly.

I have written a code to change the CurrentExplorer by clicking a command bar button. What i have used is

Step1:- getting a root folder of the session
step2:- Looping through the RootFolder.Folders collection to get my Custom Folder which is again a root folder for all my custom folder(s)
Step3: After Getting my custom Root folder object i am looping through to get my custom sub folder under this custom root folder.
Step4 : Once i get the Desired Folder Object i assign the ActiveExplorer.CurrentFolder to that object
Step5 : Break

So my concerned here is to ask, is this approach is Okey or any other approach to get the desired folder object directly and assign it to current folder property exist.

Best Regards,

Vivek Jain
Posted 21 Jun, 2006 08:29:24 Top