Creating a simple UserControl in Outlook Addin

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.
 
D

DaveL

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top