Creating a simple UserControl in Outlook Addin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • deepapanch@gmail.com

    Creating a simple UserControl in Outlook Addin

    Hi All:


    I am new to C#. Have created a simple outlook add-in, which adds a
    command bar in Outlook. On click of the button, I would like to load
    the a simple dialog with a Text Box and a Button. I would like to
    populate the textbox with a value, before displaying it.


    To accomplish this, I tried creating a custom control (Test Control)
    in design time with a text box and button, and loaded the custom
    control in a form in design time. I am able to create and display the
    form at runtime, but unable to set the property of textbox that is
    present in the custom control.


    Could you please help?


    Regards.

  • DaveL

    #2
    Re: Creating a simple UserControl in Outlook Addin

    Without Knowing very much that you are doing

    Did you check the textbox Modifier Property
    public, private, protected etc

    since you have it on a user Control, you either
    have to create property to access the textbox from the outside world or make
    the textbox itself public

    DaveL

    <deepapanch@gma il.comwrote in message
    news:726b6331-7d02-4151-945f-c56d98f5f2f5@v3 9g2000pro.googl egroups.com...
    Hi All:
    >
    >
    I am new to C#. Have created a simple outlook add-in, which adds a
    command bar in Outlook. On click of the button, I would like to load
    the a simple dialog with a Text Box and a Button. I would like to
    populate the textbox with a value, before displaying it.
    >
    >
    To accomplish this, I tried creating a custom control (Test Control)
    in design time with a text box and button, and loaded the custom
    control in a form in design time. I am able to create and display the
    form at runtime, but unable to set the property of textbox that is
    present in the custom control.
    >
    >
    Could you please help?
    >
    >
    Regards.
    >

    Comment

    Working...