Hi Phillip,
You dont need any DLL's to add Context sensitive Help in task pane.
You can add a help text using HTML and add as a resource file and enable the
task pane using Form options -> Advanced Tab and select the resource file.

Signature
Kalyan Reddy
Visit http://www.autonomysystems.com
> I'm trying to implement the InfoPath Lab 14 using managed code (as opposed
> to scripting).
[quoted text clipped - 9 lines]
>
> --Philip
Philip Colmer - 15 Mar 2006 10:40 GMT
Thank you for your reply but that isn't the problem I'm facing.
Lab 14 uses code to adjust the style settings in the task pane HTML code so
that only certain DIV sections are visible, depending on the context that
has just been selected. Unfortunately, Lab 14 has been written using script,
whereas I'm using managed code.
According to an InfoPath blog
(http://blogs.msdn.com/infopath/archive/2004/09/27/234911.aspx), the
solution is to either deploy the mshtml PIA or to use late binding. The
source code they provide is written in C# and I'm not sure if it will
translate over to Visual Basic which is what I'm using. Another reason why
I'm uncertain about this solution is because I'm not actually trying to call
script functions - I just want to use the VB equivalent of this:
// Retrieve task pane object
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 statement having same ID as the context node name
oHTMLDoc.item(eventObj.Context.nodeName).style.display="";
// Keep record of string displayed, so can later be cleared
helpString=eventObj.Context.nodeName;
return;
Is there an easy alternative to deploying the mshtml PIA? If there isn't,
can anyone help with constructing an MSI to allow me to deploy it with Group
Policy?
Thanks.
--Philip
> Hi Phillip,
>
[quoted text clipped - 19 lines]
>>
>> --Philip