Im looking to display <div elements in a custom task pane, dependent on what is selected in the infopath form.
If i were to do this via unmanaged code it would be similar to this on the ContextChange event:
var oTaskPane = XDocument.View.Window.TaskPanes.Item(0);
//Retrieve html object for task pane
var oHTMLDoc = oTaskPane.HTMLDocument.all;
//Clear previous help topic from task pane
if (helpString)
oHTMLDoc.item(helpString).style.display = "none";
//Display DIV Statemment having same ID as the context node name
oHTMLDoc.item(eventObj.Context.nodeName).style.display = "";
//Keep records of string displayed so can be cleared later
helpString = eventObj.Context.nodeName;
How do achive the same in managed code?
Thanks in advance