I found a bug at the ComboBoxW control using the style "dropdowncombo", all other control properties are "Standard".
I get different results for the text property when using this code:
Code:cboMS.Text = "C:\test_" cboMS.AddItem "C:\test_1" cboMS.AddItem "C:\data" cboVBCCR.Text = "C:\test_" cboVBCCR.AddItem "C:\test_1" cboVBCCR.AddItem "C:\data"
The command .AddItem "C:\test_1" replaces the text "C:\test_" in the editbox!
AddItem should extend the dropdown-list but not replace the text in the editbox.
When i manually change the text in the editbox to "C:\test_" and open the dropdown-list the text will be changed back to "C:\test_1" again without clicking on the first item in the dropdown-list!
Any idea how to get the same behavior as the original MS controls?




Reply With Quote