programmatically change To-Do bar settings

  • Thread starter Thread starter MiMi
  • Start date Start date
M

MiMi

Hi,

Could anyone provide some hints or sample code to change the settings
between Normal, Minimized, or Off? Check Date Navigator,
Appointments, Task List? Will be different in Outlook 2007 and
Outlook 2010?

Thanks.
Mimi
 
// to Set To-Do bar to normal

Outlook.Explorer currExplorer = null;
currExplorer = ((Outlook.Application)applicationObject).ActiveExplorer();
currExplorer.ShowPane(Outlook.OlPane.olToDoBar, true);

false will make the todo bar off, dont know for minimise.

I used regedit to check tasklist, appointments, date navigator like this:
RegistryKey rkRegOutlookOptions = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Office\14.0\Outlook\options\ToDoBar");

rkRegOutlookOptions.SetValue("ShowTaskList", "1", RegistryValueKind.DWord);

--Bivek
 
Back
Top