Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / December 2005

Tip: Looking for answers? Try searching our database.

creating new addin in vstudio 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nabeel Moeen - 14 Dec 2005 14:43 GMT
when creating a new extensibility addin for vstudio 2003 using the wizard the
code generated does not add a "Command" to the 'Tools' "CommandBar"

i tried getting the controls count for the "CommandBar" object indexed by
"Tools"
and it gives me teh count as 0.

Can anyone confirm if the code generated by the wizard is buggy?
Carlos J. Quintero [VB MVP] - 14 Dec 2005 15:42 GMT
I don´t know about that problem (I am quite sure that the Tools commandbar
has something greater than 0 commands, you know) but see this article of
mine:

HOWTO: Adding buttons, commandbars and toolbars to Visual Studio .NET from
an add-in
http://support.microsoft.com/default.aspx?scid=kb;en-us;555326

Which language are you using?

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

> when creating a new extensibility addin for vstudio 2003 using the wizard
> the
[quoted text clipped - 5 lines]
>
> Can anyone confirm if the code generated by the wizard is buggy?
Nabeel Moeen - 16 Dec 2005 09:19 GMT
Hi Carlos,

I went through your article and figured out the problem (or the cause of the
behavior).
The code generated by the wizard adding the controls to the Tools commandbar
in an "if" statement that was checking for the connectionMode ==
Extensibility.ext_ConnectMode.ext_cm_UISetup.
Your articles use the Startup and AfterStartup connection modes to add the
new control to the commandBar.

Now i've got my control appearing in the Tools menu.
Can you suggest a reason why the UISetup mode wasn't working? and which is a
better approach?

Regards,
Nabeel Moeen

> I don´t know about that problem (I am quite sure that the Tools commandbar
> has something greater than 0 commands, you know) but see this article of
[quoted text clipped - 15 lines]
> >
> > Can anyone confirm if the code generated by the wizard is buggy?
Carlos J. Quintero [VB MVP] - 20 Dec 2005 15:28 GMT
Hi Nabeel,

The UISetup phase is fired only once. See my other article:

INFO: Visual Studio .NET Add-In Commands Disappear On Next Session
http://support.microsoft.com/default.aspx?scid=kb;en-us;555321

There are lots of articles on my web site (below) to help with this and
other problems. Take a look at them.

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com

> Hi Carlos,
>
[quoted text clipped - 15 lines]
> Regards,
> Nabeel Moeen
Nabeel Moeen - 21 Dec 2005 13:39 GMT
Thanks for the help Carlos.
I'll look into the articles you mentioned.

Regards,
Nabeel Moeen

> Hi Nabeel,
>
[quoted text clipped - 25 lines]
> > Regards,
> > Nabeel Moeen

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.