Microsoft KB Archive/925192

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:33, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


The "Forms.TextBox" control does not programmatically add a control in Outlook 2007

Article ID: 925192

Article Last Modified on 4/25/2007



APPLIES TO

  • Microsoft Office Outlook 2007



SYMPTOMS

When you pass a control that you created by adding a Forms.TextBox control to FormRegion.SetControlItemProperty, the control is sometimes removed from the form in Microsoft Office Outlook 2007. Additionally, the SetControlItemProperty method fails.

CAUSE

This behavior occurs because Outlook 2007 replaces the Forms.TextBox control with the Outlook.olkTextBox object.

WORKAROUND

To work around this behavior, perform one of the following actions:

  • Use the Outlook.olkTextBox object instead of the Forms.TextBox control.
  • Set the FormRegion.SuppressControlReplacement property to true before you add the control. This prevents Outlook 2007 from replacing the control.


MORE INFORMATION

For more information about what is new for developers in Outlook 2007, visit the following Microsoft Web site:


Additional query words: OL2007 Outlook2007

Keywords: kbtshoot kbexpertiseinter kbprb KB925192