Creating a simple UserControl in Outlook Addin

  • Thread starter Thread starter deepapanch
  • Start date Start date
D

deepapanch

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.
 
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
 
Back
Top