Microsoft KB Archive/884901

From BetaArchive Wiki

Article ID: 884901

Article Last Modified on 4/7/2006



APPLIES TO

  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.1 Service Pack 1




SYMPTOMS

On a computer that has the Microsoft .NET Framework 1.1 Service Pack 1 (SP1) installed, when you run a Multiple Document Interface (MDI) based application, the control layout of the MDI child form may become corrupted at run time. You may experience this problem when one or more of the following conditions are true:

  • You run the application on a computer that has a screen resolution of 800x600 pixels.
  • The MDI application window is maximized.
  • In the MDI child form, a vertical scroll bar appears because the scrollable area of the form is larger than the screen area.
  • The MDI child form is hidden. Then, the form is shown.
  • The control that had focus before the child form was hidden and then was shown was a ComboBox control or a UserControl object.
  • The scroll bar on the MDI child form is positioned so the control that had focus before the child form is hidden or is shown does not appear on the screen.


CAUSE

This problem occurs because an error occurs when the scroll position of the form is calculated.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next .NET Framework 1.1 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

The Microsoft .NET Framework 1.1 Service Pack 1 (SP1)

Restart requirement

You do not have to restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other software updates.

Hotfix file information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

  Date         Time   Version        Size       File name
  ----------------------------------------------------------------------
  05-Nov-2004  01:49  1.1.4322.1088  1,703,936   System.design.dll 
  05-Nov-2004  01:49  1.1.4322.1088    466,944  System.drawing.dll 
  05-Nov-2004  01:49  1.1.4322.1088  2,048,000  System.windows.forms.dll 

WORKAROUND

To work around this problem, override the VisibleChanged event of the MDI child form to reset the scroll position when the form is hidden. In the event handler for the VisibleChanged event, set the AutoScrollPosition property to (0,0) if the Visible property of the form is true. This causes the scroll position to be set at 0,0 when the form appears again. This behavior prevents the disruption of the control layout. To do this, use code that is similar to the following code sample:

Private Sub ChildForm_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.VisibleChanged
If Not Me.Visible Then
    Me.AutoScrollPosition = New Point(0, 0)
End If
End Sub

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


Keywords: kbqfe kbhotfixserver kbfix kbbug KB884901