Hi,
thanks for reply.
so I have added a reference in the project to Microsoft.mshtml.
And in my OnContextChange handler I have written:
if (e.Type == ''ContextNode'')
{
string aLoc=e.Context.nodeName;
aLoc=aLoc.Replace(''my:'', '''');
HTMLTaskPaneObject taskPane=(HTMLTaskPaneObject)thisXDocument.View.Window.TaskPanes[0];
...