Custom Control Properties

Discussion in 'InfoPath' started by hephie, Oct 18, 2011.

  1. hephie


    Oct 18, 2011
    Likes Received:
    Hi All,

    I managed to create a custom control (treeview) and use it inside an infopath 2010 form template.

    The last thing todo is make a property available in the property window of the control, inside the infopath form designer.
    Can anybody tell me how to do this?

    For example i want to fill in a ConnectionString in the infopath desginer, and pass this to the custom control.

    In my custom control I have declared some public property's wit the Browsable and ComVisible attribute set to true.
    But the property still doesnt show up in InfoPath.

    When I create an empty windows form application, and use my custom control in there, the Connection String property is visible in the properties window.
    So I think I must implement or do some infopath specific things in orde to expose the property to InfoPath?

    Has anybody ever done this before?!
    Thanks in advance!

    hephie, Oct 18, 2011
    1. Advertisements

  2. hephie


    Apr 23, 2012
    Likes Received:
    Would you be willing to post your code for creating this control?
    Joseph, Apr 23, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.