1

Is it possible to grab the code editor "control" used within Visual Studio using the VS SDK APIs? Would I be able to draw this control to other places outside of Visual Studio?

I would like to have C# editing capabilities in the application I am considering developing (with IDE support that the code editor provides).

Joshua Enfield
  • 17,642
  • 10
  • 51
  • 98

1 Answers1

1

I have an idea:

HWND WINAPI FindWindow(
  _In_opt_  LPCTSTR lpClassName,
  _In_opt_  LPCTSTR lpWindowName
);

First you get a lpWindowName with Spy++, then by using FindWindow you get a handle of this window and can show / place it where ever you want.

Leo Chapiro
  • 13,678
  • 8
  • 61
  • 92
  • This would require Visual Studio to be running already, and might take some care to work properly with WPF. Not sure if using the APIs would require VS to run in the background. – ssube Mar 15 '13 at 19:09
  • Interesting idea, but having VS running is not at all ideal :( – Joshua Enfield Mar 15 '13 at 19:12