Hi all,
I was able to import a C# user control to InfoPath 2007 form following the instruction at http://blogs.msdn.com/infopath/archive/2005/04/15/creating-an-infopath-custom-control-using-c-and-net.aspx. Does any one know how to expose properties of the custom control to InfoPath form designer?
Say the custom control has property like:
// Implementation of the Value property get and set methods.
[ComVisible(true), Browsable(true)]
[Editor("System.Windows.Forms.TextBox, System.Design", typeof(UITypeEditor))]
public string DisplayField
{
get { return cbItems.DisplayMember; }
set { cbItems.DisplayMember = value; }
}
At InfoPath form designer, I would like to set the property from the property editor. According to Steve at http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.infopath&tid=40e1fcb5-db3a-4db2-832e-e1879dc8479f&cat=&lang=&cr=&sloc=&p=1, implementing IPropertyPage or IPropertyPageImpl will do the trick, but I have not figured out how to import the ATL functionality to C#.
Can anyone shine some light on this?
Thanks a lot,
Roy