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
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2967 | Hits: 609

Similar Posts

  • My History of Visual Studio (Part 10, final) more
  • My History of Visual Studio (Part 9) more
  • Visual Studio Add-In vs. Integration Package Part 1 more
  • Building Silverlight 2 and 3 applications with Visual Studio 2008 more
  • VS2010 Beta 1 - It's Better on Metal more
  • Parallel Programming and the Virtual PC limitation more
  • Resolving Errors - Moving to Silverlight2 RTW more
  • Visual Studio Extensibility more
  • Register for DevTeach Montreal more
  • Visual Studio SP1 and Silverlight tools 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