Retrieving a CodeElement reliably in VS.NET 2005

Posted by: Rick Strahls WebLog, on 03 Nov 2005 | View original | Bookmarked: 0 time(s)

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
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2850 | Hits: 556

Similar Posts

  • Visual Studio Add-In vs. Integration Package Part 1 more
  • My History of Visual Studio (Part 10, final) more
  • VS2010 Beta 1 - It's Better on Metal more
  • Resolving Errors - Moving to Silverlight2 RTW more
  • My History of Visual Studio (Part 9) more
  • Parallel Programming and the Virtual PC limitation more
  • Visual Studio Extensibility more
  • Building Silverlight 2 and 3 applications with Visual Studio 2008 more
  • Parallel Programming and the Virtual PC limitation more
  • Parallel Programming and the Virtual PC limitation more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | 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