您的位置: 首页 >>
文章首页 >>
编程开发 >>
网络编程 >>
.net >> 安装vs.net 2003后提示Dte.olb could not be loaded.Please re-run setup and repair your installation而无法启动vs.net(专贴)
安装vs.net 2003后提示Dte.olb could not be loaded.Please re-run setup and repair your installation而无法启动vs.net(专贴)
作者: 来源:网络文章
时间:2005-12-13 20:01:33
安装vs.net 2003后提示Dte.olb could not be loaded.Please re-run setup and repair your installation而无法启动vs.net(专贴)(3) string fullpathToMicrosoftInk = LookupMicrosoftInkAssemblyFilename();
// Prepare to munge the toolbox -- get toolbox window, object, and tabs collection EnvDTE.Window toolboxWindow = env.Windows.Item(EnvDTE.Constants.vsWindowKindToolbox); EnvDTE.ToolBox toolbox = (EnvDTE.ToolBox)toolboxWindow.Object; EnvDTE.ToolBoxTabs toolboxTabs = toolbox.ToolBoxTabs;
// Careful to check if our tab already exists foreach (EnvDTE.ToolBoxTab tab in toolboxTabs) { if (tab.Name == TabName) return; }
// No, so add it EnvDTE.ToolBoxTab newtab = toolboxTabs.Add(TabName);
// WinBug: gotta show the Properties window, first (this cost me ~1 day of my life) env.ExecuteCommand("View.PropertiesWindow", "");
// WinBug2: gotta activate the tab and select the first item (grr...) newtab.Activate(); newtab.ToolBoxItems.Item(1).Select();
// Finally: add the Microsoft Ink controls newtab.ToolBoxItems.Add( @"Unused?", fullpathToMicrosoftInk,