Hi,
(sorry for my englisch, i am german)
in the MSDN Knowledge Base has Carlos J. Quintero write a article for creating a CommandBarPopup command in Visual Studio .NET 2003. It works and the artikle is a good Away.
Now in VS2005, i thought it become differently and better. Why do i have to delete this CommandBar- Control (CommandBarPopup) in OnDisconnection? The Command is exist wehn i close and re- open the VS2005. Can i not use this exist command ?
THX for all answers.
TOM_MUE
www.tom-mue.de
Martin de Jong - 31 Jan 2006 21:28 GMT
If you would disable the addin in the Addin Manager, the commandbar would
stay and show, but wont work. Just looks sloppy. Further next time u
connect u sh retrieve the existing bar, otherwise u get two bars:)
ML
Hi,
(sorry for my englisch, i am german)
in the MSDN Knowledge Base has Carlos J. Quintero write a article for
creating a CommandBarPopup command in Visual Studio .NET 2003. It works and
the artikle is a good Away.
Now in VS2005, i thought it become differently and better. Why do i have to
delete this CommandBar- Control (CommandBarPopup) in OnDisconnection? The
Command is exist wehn i close and re- open the VS2005. Can i not use this
exist command ?
THX for all answers.
TOM_MUE
www.tom-mue.de
Thomas Mueller - 01 Feb 2006 09:47 GMT
Hi Martin,
> If you would disable the addin in the Addin Manager, the commandbar would
> stay and show, but wont work. Just looks sloppy.
OK, I understand that. Is there a way to deactivate the CommandBarPopup
object to prevent the user from using it?
> Further next time u connect u sh retrieve the existing bar, otherwise u
> get two bars:)
How can i retrieve the existing CommandBarPopup-Object?
TOM_MUE
> ML
>
[quoted text clipped - 14 lines]
> TOM_MUE
> www.tom-mue.de
Martin de Jong - 01 Feb 2006 18:19 GMT
I just delete the command bar or the button on disconnecting
> Hi Martin,
>
[quoted text clipped - 29 lines]
>> TOM_MUE
>> www.tom-mue.de
Carlos J. Quintero [VB MVP] - 02 Feb 2006 09:21 GMT
Hi Thomas,
You can take two approaches with commandbars and buttons in VS.NET 2003/VS 2005 (there are no differences between both in this regard):
- To use permament commanbars and buttons: they load faster but they stay even if you unload the add-in in the Add-in Manager, which can confuse the user and for this reason most add-ins do not buy this approach.
- To use temporary commandbars and buttons: the opposite approach.
There are several HOWTO articles about this on my web page:
http://www.mztools.com/resources_vsnet_addins.htm

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
Hi,
(sorry for my englisch, i am german)
in the MSDN Knowledge Base has Carlos J. Quintero write a article for creating a CommandBarPopup command in Visual Studio .NET 2003. It works and the artikle is a good Away.
Now in VS2005, i thought it become differently and better. Why do i have to delete this CommandBar- Control (CommandBarPopup) in OnDisconnection? The Command is exist wehn i close and re- open the VS2005. Can i not use this exist command ?
THX for all answers.
TOM_MUE
www.tom-mue.de