Microsoft Knowledge Base Email Alertz

KBAlertz.com: Explains a problem that occurs with the SelectedIndex property of the ComboBox control. A problem occurs when the text of the control is set by using the Text property. To resolve this, install the Microsoft .NET Framework 1.1 Service Pack 1.

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 839616 - Last Review: May 21, 2007 - Revision: 2.3

FIX: The value of the SelectedIndex property of the ComboBox control does not change when you set the text by using the Text property

SYMPTOMS

The value of the SelectedIndex property of the ComboBox control does not change if you set the text by using the Text property in the Microsoft .NET Framework 1.1. Additionally, the text of the ComboBox control appears as an empty string when you access the Text property of the ComboBox control.

CAUSE

If you try to put a value that does not exist in the ComboBox control by using the Text property, the ComboBox control reverts to the last value that was selected from the list.

RESOLUTION

To resolve this problem, obtain the latest service pack for the Microsoft .NET Framework 1.1. The following file is available for download from the Microsoft Download Center:
The Microsoft .NET Framework 1.1 Service Pack 1
http://www.microsoft.com/downloads/details.aspx?FamilyId=A8F5654F-088E-40B2-BBDB-A83353618B38 (http://www.microsoft.com/downloads/details.aspx?FamilyId=A8F5654F-088E-40B2-BBDB-A83353618B38)

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.1 Service Pack 1.

MORE INFORMATION

In the .NET Framework 1.0, you can extract the value that you put in the Text property after you update the data in the ComboBox control. You cannot do this in the .NET Framework 1.1. However, the value in the ComboBox control display area in the .NET Framework 1.1 shows the correct information.

REFERENCES

For additional information about standard terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://kbalertz.com/Feedback.aspx?kbNumber=824684/ ) Description of the standard terminology that is used to describe Microsoft software updates
For additional information about why the ComboBox does not clear, click the following article number to view the article in the Microsoft Knowledge Base:
327244  (http://kbalertz.com/Feedback.aspx?kbNumber=327244/ ) BUG: ComboBox does not clear when you set SelectedIndex to -1
For additional information about setting the value in code, click the following article number to view the article in the Microsoft Knowledge Base:
327555  (http://kbalertz.com/Feedback.aspx?kbNumber=327555/ ) BUG: The Text property of a data-bound ComboBox returns an incorrect value when you set the value in code
For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:

ComboBox.Text property
http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.text(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.text(vs.71).aspx)

ComboBox.SelectedIndex property
http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.selectedindex(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.selectedindex(vs.71).aspx)

APPLIES TO
  • Microsoft .NET Framework 1.1
Keywords: 
kbqfe kbhotfixserver kbnetframe110sp1fix kbcombobox kbbug kbfix kbnetframe110presp1fix KB839616
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please