OL98: Standard Toolbar Buttons Change on Custom Form

ID: Q224674


The information in this article applies to:


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:

  1. 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.
  2. 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.
  3. Display the Formatting toolbar on the form by default.
  4. 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 Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:

http://www.microsoft.com/mcsp/
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/refguide/
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:

Q180826 OL98: Resources for Custom Forms and Programming
Q182349 OL98: Questions About Custom Forms and Outlook Solutions

Additional query words: OutSol OutSol98 OL2K 98


Keywords          : kbdta 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 26, 1999