The information in this article applies to:
SUMMARYThis article describes additional properties that can be used with Microsoft Outlook 97 controls on customized forms. MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft Support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspIf you customize Outlook forms, you can set properties for the controls on the form by right-clicking the control and clicking Properties or Advanced Properties on the shortcut menu. The properties described in this article are not standard properties for the controls, and therefore, it may not be intuitive that these properties can actually be changed using Microsoft Visual Basic Scripting Edition (VBScript) or Visual Basic for Applications Automation code. NOTE: The ItemProperty and LayoutFlags properties are documented in the Outlook Forms Help file. Use the Find tab of the Help file to search for the property names. For more information about obtaining the Outlook Forms Help file, please see the following article in the Microsoft Knowledge Base: Q161082 OL97: Microsoft Outlook Forms Help Available on MSL PossibleValues PropertyYou can use the PossibleValues property to programmatically set multiple values in a control, typically a list box or combo box control. The following VBScript example fills a list box with the values Test1, Test2, and Test3 when you open the form:
NOTE: You can also use the AddItem method of the control to populate list
boxes and combo boxes one line at a time. This is a typical approach used
in Visual Basic solutions.
ItemProperty PropertyThe ItemProperty property can be used in VBScript to bind a control to a MAPI field in the Outlook item. The following VBScript example binds a list box control to the Mileage property:
LayoutFlags PropertyWhen working with a control in design mode, you can view the properties of a control by right-clicking on a control and choosing Properties on the shortcut menu. The Display tab of the Properties dialog box contains an option for Resize with Form, which may be on or off by default depending on the type of control. If this property is turned on, then the control will horizontally resize when the form itself is being horizontally resized.In the Properties dialog box, you cannot set the control to vertically resize, but you can write VBScript code to change both the vertical and horizontal Resize with Form setting.
REFERENCESFor more information about using fields and controls with Microsoft Outlook 97, please see the following article in the Microsoft Knowledge Base: Q168975 OL97: How to Use Fields and Controls with VBScriptFor more information about creating solutions with Microsoft Outlook 97, please see the following articles in the Microsoft Knowledge Base: Q166368 OL97: How to Get Help Programming with Outlook Additional query words: OutSol OutSol97 kbcode kbmacro vba
Keywords : |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |