Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Mon, 7 Jul 2008 08:16:03 -0700,    group: microsoft.public.office.developer.com.add_ins        back       


IDTExtensibility::OnBeginShutdown hiding gui elements too late   
Hi,
( I have posted this in excel.programming also, but found this group even a 
better place, since its addin specific)

I have an addin, which was implemented using .NET and the IDTExtensibility 
interface. The addin adds GUI elements to XL (a toolbar &context menu).

Now when closing Excel I want to make sure, that those GUI elements are 
hidden. During the next startup of Excel the addin should decide wether those 
elements should become visible or not. Now, when setting those elements 
visible=false in the IDTExtensibility::OnBeginShutdown or 
IDTExtensibility::OnDisconnect methods it seems to be to late. During the 
next startup Excel does not seem to remember that the state of those elements 
was visible=false and shows them visible=true.

Can someone recommend an event or a strategy on how to accomplish the 
purpose I am aiming for?

Thanks in advance,

Ralf

-- 
Dipl.-Ing. Ralf Steinstraesser
Software Architekt
Bissantz & Company GmbH
date: Mon, 7 Jul 2008 08:16:03 -0700   author:   Ralf Steinstraesser

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us