cannot use "Application.FindExtensionByCLSID(pID)" "application" - not found

Discussion created by saipo on Nov 20, 2011
Latest reply on Nov 20, 2011 by rfairhur24
Hi all, migrating some VBA code to VB dotnet in an addin for arcmap 10.  Using visual studio 2010.

This line
pEditor = Application.FindExtensionByCLSID(pID)

give this error
Error 8 'FindExtensionByCLSID' is not a member of 'System.Windows.Forms.Application'.

Is there a reference missing? I have tried "My.ArcMap.Application.Document" but cannot get to the findextension.

Any suggestion.