<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Custom ActiveX Control Clarification.</title><link>https://www.infopathdev.com:443/forums/thread/4742.aspx</link><pubDate>Wed, 29 Jun 2005 15:04:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4742</guid><dc:creator>ScottAtRVC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4742</wfw:commentRss><description>Hi All.&lt;br /&gt;&lt;br /&gt;I am looking to author a few custom ActiveX controls.  I have followed the InfoPath team blog how to on C# / ActiveX custom control authoring - &lt;br /&gt;&lt;a href='http://blogs.msdn.com/infopath/archive/2005/04/15/408728.aspx' target='_blank' title='http://blogs.msdn.com/infopath/archive/2005/04/15/408728.aspx'&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2005/04/15/408728.aspx&gt;http://blogs.msdn.com/infopath/archive/2005/04/15/408728.aspx&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I was wondering if someone with experience could clarify my understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How does InfoPath know what control property to use as the value?&lt;/b&gt;&lt;br /&gt;This is determined soley by the bindingProperty within the ict file.  There is no InfoPath GUI menu / property menu to control this binding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What property bindings can InfoPath handle?&lt;/b&gt;&lt;br /&gt;InfoPath can only handle a Value and an Enabled property.&lt;br /&gt;Irrespective of what properties are available within the custom ActiveX control, InfoPath is only capable of handling a Value and an Enabled property.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;IPropertyNotifySink&lt;/b&gt;&lt;br /&gt;Whatever events are declared by the implementation of the IPropertyNotifySink interface;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;	public interface IPropertyNotifySink&lt;br /&gt;	{&lt;br /&gt;		int OnChanged(int dispId);&lt;br /&gt; &lt;br /&gt;		[PreserveSig]&lt;br /&gt;		int OnRequestEdit(int dispId);&lt;br /&gt;	}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The raising of any of these events will ONLY trigger InfoPath to update the value binding within the XML DOM.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Within InfoPath&lt;/b&gt;&lt;br /&gt;Within InfoPath it is NOT possible for managed code to hook into the events raised by the custom ActiveX control.&lt;br /&gt;&lt;br /&gt;Cheers.  Scott.</description></item></channel></rss>