Custom Control Properties

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

  1. hephie

    hephie

    Joined:
    Oct 18, 2011
    Messages:
    2
    Likes Received:
    0
    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!

    Greetz
    Hephie
     
    hephie, Oct 18, 2011
    #1
    1. Advertisements

  2. hephie

    Joseph

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

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.
Similar Threads
  1. Joseph
    Replies:
    0
    Views:
    941
    Joseph
    Apr 23, 2012
  2. karthikeyan
    Replies:
    0
    Views:
    690
    karthikeyan
    Aug 14, 2012
  3. dinker454

    Creating custom save button

    dinker454, Nov 15, 2013, in forum: InfoPath
    Replies:
    0
    Views:
    648
    dinker454
    Nov 15, 2013
Loading...