I want to create an addin for vs2008, to show a transparent form/window on the editor of vs2008.
in following code, the "aw.Left" and "aw.Top" is relative value, both is 1.
QUESTION:
do you know how to get the left/top screen position of the editor part?
or I can move the caret to top/left char position, but do you know how to get the screen position of caret?
Great thanks.
public void Exec(string commandName, vsCommandExecOption executeOption, ref object varIn, ref object varOut, ref bool handled)
{
handled = false;
if(executeOption == vsCommandExecOption.vsCommandExecOptionDoDefault)
{
if(commandName == "MyAddin1.Connect.MyAddin1")
{
Window aw = _app.ActiveWindow;
int left = aw.Left;
int top = aw.Top;