OL98: Standard Toolbar Buttons Change on Custom Form (224674)



The information in this article applies to:

  • Microsoft Outlook 98

This article was previously published under Q224674

SYMPTOMS

You customize a form in Outlook, but when using the form, the buttons on the standard toolbar unexpectedly change or replicate when you briefly rest the mouse pointer on them.

CAUSE

You see this behavior if all these conditions are true, and you typically have followed this sequence:
    • Delete the Notes or Message field from the first page of the form, or if the form page is unmodifiable, hide the first form page.
    • Add the Notes or Message field to another form page, as long as it is not the first form page displayed when the form is used.
    • Display the Formatting toolbar on the form by default.
    • Use or run the form, switch to the form page that contains the Message or Notes control, and then briefly rest the mouse pointer on the standard toolbar.

RESOLUTION

Microsoft 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 a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: You can work around this problem by placing the following Visual Basic Scripting Edition (VBScript) code in the form:
Sub Main

   ' Set the form page to whatever page has the Notes field on it, in
   ' this case the P.2 page.
   Item.GetInspector.SetCurrentFormPage "P.2"

   ' Switch the form page back to the first form page, in this case the
   ' the General page of a contact form.
   Item.GetInspector.SetCurrentFormPage "General"

End Sub
				

MORE INFORMATION

For more information about creating solutions with Microsoft Outlook 98, please see the following articles in the Microsoft Knowledge Base:

180826 OL98: Resources for Custom Forms and Programming

182349 OL98: Questions About Custom Forms and Outlook Solutions


Modification Type:MajorLast Reviewed:5/13/2002
Keywords:kbbug KB224674