Retrieving a CodeElement reliably in VS.NET 2005

Posted by: Rick Strahls WebLog, on 03 Nov 2005 | View original

I’ve been working on updating the Help Builder VS.NET 2005 add-in and there are a number of small things that I’ve run into that behave quite a bit different than in VS2003. Here’s one that pretty much broke all of my existing add-in behavior that deals with the editor integration.   In VS2003 I used the following code to figure out what type of code element the cursor is sitting on: element = DTE.ActiveDocument.ProjectItem.FileCodeModel.CodeElementFromPoint(selPoint,0); This...

Advertisement

Similar Posts

  • Windows Workflow Foundation (WF) more
  • .NET 2.0 vs .NET 1.1 !! Upgrade to .NET 2.0 "NOW" more
  • Extending MSBuild more
  • Extending Visual Studio, and open source more
  • Nevron .NET Vision 2005 Q4 for Visual Studio 2005 - Released more
  • Netgear SC101 Storage Central more
  • Open Source and Visual Studio more
  • Interesting bug in Saxon.NET/Mono/OSX usage more
  • Wondering where the latest build is more
  • Targetting earlier .NET frameworks more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD