Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box problem

Status
Not open for further replies.

WP

Programmer
Nov 30, 1999
463
CH
Hi I have a problem where the .text value of a combo box will not change unless the item is selected from the list.

The combo box is of type dropdown. Ideally I'd like to select the item in the list as the user enters the string in the combo box. I can't make the combo box a dropdownlist as this only positions on the first keypress.

Almost all values start with an X e.g. XFRA, XLON, XPAR. They are exchange MIC codes.

When I debug the

Private Sub exchangeCombo_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles exchangeCombo.TextChanged
Try
exchangeCombo.SelectedValue = exchangeCombo.Text

the value of exchangeCombo.Textholds the old value.

Looking at the object I see the new value in

exchangeCombo
AccessibilityObject {system.windows.forms.control.controlaccessibleobject}
Value

How do I get at theis value ?



WP

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top