index > Visual Studio Tools for Office > Dynamic Controls Within An Outlook 2007 Form Region

Dynamic Controls Within An Outlook 2007 Form Region

my users can setup a list of user defined fields. i need to add a control to my Outlook 2007 form region when it loads for each of UDF's that my user has setup.

is this possible? thanks.

p.s. i have tried placing the following code within my form region constructor, but it does not populate the text property.

Outlook.OlkTextBox dynamicTextBox = new Outlook.OlkTextBox();

Form.Controls.Add("Forms.TextBox.1", dynamicTextBox, true);

dynamicTextBox.Text = "Hello world!";

Wee Bubba

Yes you can dynamically add form region controls. Your code is almost right but it should look like below. This is the C# and VB code to dynamically add controls to an Outlook form region.

Paul Stubbs
Program Manager

C# (See VB below)

using

Paul Stubbs - MSFT
thanks for the assistance!
Wee Bubba

I was wondering if we would add "System.Windows.Forms.TextBox" into the form region instead of "Outlook.OlkTextBox
Mithat Mese
You need to use the Outlook.* controls, which are specifically designed with the features they need to function properly on an Outlook form surface.
Sue Mosher - Outlook MVP
reply 5

You can use google to search for other answers

 

More Articles

• outlook add-in 2002 vs 2003
• Unit testing VSTO solutions
• Hiding Groups In A Tab
• How can I use the Page interface in the Microsoft.Office.Interop....
• VSTO app takes a long time to load when not connected to the Inte...
• Office add-in does not load on Windows Server2003 in terminal mod...
• IPropertySetStorage::Open() fails for some MS Word documents
• Does the Tools for Office edition still have the ability to build...
• MSAA with Word/Excel
• Desperate - please help (KB 907417 & 908002)
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• How to span columns selected in owc11 sp
• Best Practice for XML Schema Library?
• disable command bar button
• VSTO,Actions pane?? navigation buttons.
• set_Style throws error in Arabic OS
• Excel Addin Password
• Problem in Reading Word File Programmati
• Why Office 2003 Pro and/or the "Box
• Shared AddIn Problem
• CDOEX help needed
• ExcelWorksheet with Deployment, assembly
• ContextSwitchDeadlock Error when trying
• VB.NET: Problem with Page header in Word
• ActionsPane and IDTExtensibility2
• The XML Schema for MS Project 2003?

Hot Articles

• VSTA: How to handle non-public object wh
• Deploying a Word Solution with an Action
• insertxml in word 2007
• VSTO Installation included in Visual Stu
• Outlook accounts
• How to edit the Oultlook default folders
• Office 2003 problem
• Re: Shimming in VS 2005 Tools for Office
• Need Help: Suggest an approach!!
• VSTO Excel Databinding Performance
• Support on outlook plug in using VS.Net
• File error : Data may be lost
• how to catch this event?
• VSTO Word Template & Custom Menus/To
• XML View and how to change reading pane

Recommend Articles

• No such interface supported with v3
• Server Document Population
• Easy one
• ActionsPane does not show up...please he
• Office Web Components
• VSTO project "Attempted to read or
• Problem while adding xml nodes to a word
• How Digital Signature work.
• I cann't publish the metadata IBF
• Find() and Autofit() issues
• Excel SaveAs not working properly
• Error: QueryInterface for interface Micr
• The customization does not have the requ
• Unable to retrieve the manifest from the
• filling the Multiple ranges