I am building a Outlook 2007 Addin using with VS2008 using IRibbonExtensibility.
My simple ribbon displays on a MailItem and has a editBox and a button control. Required functionality is that the user enters a number in the editBox, then clicks the button. The email message is then saved into a third party system (using the number entered in the editBox as a “primary key” to control location etc)
I am stuck at the point of accessing the value the user has entered into the editBox from the callback function of the button.
I have the follow markup
<editBox
id="FileNumber"
maxLength="6"
label="File No"
/>
<button
id="AddEmailTo"
label="Save to"
onAction ="AddEmailToButton_Action"
/>
</group>
</tab>
And the following callback
public void AddEmailToButton_Action (Microsoft.Office.Core.IRibbonControl p_Control) {
//what do I need to add here to access the value in the editBox?
}
Thanks andrew