How to: Control the Drop Button Style and When to Show the Drop Button
Article
Outlook Developer Reference
The following example demonstrates the different symbols that you can specify for a drop-down arrow in a ComboBox or TextBox. In this example, the user chooses a drop-down arrow style from a ComboBox. This example also uses the TextBox.Locked property. To use this example, copy this sample code to the Script Editor of a form. Make sure that the form contains:
Sub ComboBox1_Click()
ComboBox1.DropButtonStyle = ComboBox1.Value
TextBox1.DropButtonStyle = ComboBox1.Value
End Sub
Sub Item_Open()
Set TextBox1 = Item.GetInspector.ModifiedFormPages.Item("P.2").Controls("TextBox1")
Set ComboBox1 = Item.GetInspector.ModifiedFormPages.Item("P.2").Controls("ComboBox1")
Set Label1 = Item.GetInspector.ModifiedFormPages.Item("P.2").Controls("Label1")