DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 814970 - Last Review: October 26, 2013 - Revision: 1.1

 
This article has been archived. It is offered "as is" and will no longer be updated.

On This Page

SYMPTOMS

In a Microsoft Windows application, the KeyDown event of a Simple style combo box is raised two times when you press the PAGE UP, PAGE DOWN, UP ARROW, or DOWN ARROW key. This problem occurs if the following conditions are true for the computer where the application is running:
  • The Microsoft .NET Framework 1.0 is installed.
  • The Microsoft .NET Framework 1.0 Service Pack 2 (SP2) is installed.
  • Hotfix KB812104 is installed.

RESOLUTION

To resolve this problem, obtain the latest service pack for the Microsoft .NET Framework 1.0. To download the latest service pack, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?familyid=6978D761-4A92-4106-A9BC-83E78D4ABC5B&displaylang=en (http://www.microsoft.com/downloads/details.aspx?familyid=6978D761-4A92-4106-A9BC-83E78D4ABC5B&displaylang=en)

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in the Microsoft .NET Framework 1.0 Service Pack 3.

MORE INFORMATION

Steps to reproduce the behavior

  1. Start Microsoft Visual Studio .NET.
  2. On the File menu, point to New, and then click Project. The New Project dialog box appears.
  3. Under Project Types, click Visual Basic Projects.
  4. Under Templates, click Windows Application, and then click OK. By default, a form that is named Form1 is created.
  5. Add a ComboBox control to the Form1 form. By default, the ComboBox1 combo box is added to the Form1 form.
  6. Right-click ComboBox1, and then click Properties. The Properties window appears.
  7. In the Properties window, set the DropDownStyle property to Simple.
  8. In Solution Explorer, right-click the Form1.vb file, and then click View Code.
  9. Paste the following code before the End Class statement in the code window of the Form1.vb file.
        Private Sub ComboBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown
            MessageBox.Show("Hi")
        End Sub
  10. On the Build menu, click Build Solution.
  11. On the Debug menu, click Start. Form1 appears.
  12. Select ComboBox1, and then press PAGE UP.
You will notice the behavior that is mentioned in the "Symptoms" section.

Note The message box appears two times. This behavior indicates that the KeyDown event is raised two times.

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft .NET Framework 1.0 Service Pack 2
Keywords: 
kbnosurvey kbarchive kbnetframe100presp3fix kbcombobox kbevent kbqfe kbfix KB814970
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support