I used Microsoft.VisualStudio.CommandBars to create a toolbar and add it to the Visual studio IDE. The toolbar hosts buttons and a dropdownlist (Combobox). All work fin in VS 2005 and 2008 but 2010 gives exception:Microsoft.VisualStudio.PaltformUI.Automation.DeprecatedException:"Combo box and drop down controls cannot be created via automation."StackTrace " at Microsoft.VisualStudio.PlatformUI.Automation.DynamicCommandBarControls.Add(Object ControlType, Object Id, Object Parameter, Object Before, Object Temporary) at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls._Marshaler.<>c__DisplayClassc.<Add>b__b() at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method) at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls._Marshaler.Add(Object Type, Object Id, Object Parameter, Object Before, Object Temporary) at vs2010Toolbar.Connect.CreateToolbar() in C:\Users\starprint\Documents\Visual Studio 2010\Projects\vs2010Toolbar\vs2010Toolbar\Connect.vb:line 202" StringDoes anyone has an example showing how to create a toolbar in an Addin that hosts buttons and ComboBoxes and the tollbar can be positioned programatically?Joginder Nahilwww.starprinttools.com
Product Language
Version
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results