Retrieving a CodeElement reliably in VS.NET 2005

Posted by: Rick Strahls WebLog, on 03 Nov 2005 | View original | NEW 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: 2051 | Hits: 238

Similar Posts

  • New article: How to detect and avoid memory and resources leaks in .NET applications more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • Bind InfoPath form to XML, Tables, SharePoint Lists & Web Services more
  • Create or Manage XPDL 1.0 & 2.1 packages using Aspose.Workflow more
  • Application Identifiers (AI) for EAN-128 barcode generation more
  • Create charts & add ad hoc capabilities to .NET Web & WinForm apps more
  • Visual Studio Add-In vs. Integration Package Part 1 more
  • The Technology Post for June 26th, 2009 more
  • My History of Visual Studio (Part 10, final) more
  • Building Silverlight 2 and 3 applications with Visual Studio 2008 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