Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Outlook Developer Reference |
The following example uses the ColumnWidths property to change the column widths of a multicolumn ListBox. The example uses three TextBox controls to specify the individual column widths and uses the Click event to specify the units of measure of each TextBox.
To use this example, copy this sample code to the Script Editor of a form. To run the code you need to open the form so the Open event will activate. Make sure that the form contains:
- A ListBox named ListBox1.
- Three custom text fields named Text1, Text2, and Text3.
- Three TextBox controls named TextBox1, TextBox2, and TextBox3 that are bound to the custom text fields above.
- A CommandButton named CommandButton1.
Try entering the value 0 to hide a column.
|