Hi Eric,
The SelectedText should be empty since focus was switched off the combbox,
when you click the button. no text was selected when the event handler was
executing.
I added a timer on to the form and print out the SelectedText property of
ComboBox ddlCategory, as you can see you you put left mouse down on the
save button, the SelectedText property become empty if you set focus back
to the comboBox , the SelctedText property return to "Tester1".
Does this behavior related to your original problem?
Also, since you said the item on another ComboBox got changed when you set
the SelectedText property on one ComboBox. Maybe you can handle the
PositionChanged event on the currencymanager of that datasource, then set a
breakpoint in the event handler, then get a complete stack trace on that
point (Note you may need load corresponding symbol file to get complete
information). Of course it would be better if you could give me a sample
program to reproduce it on my side.
Please feel free to update this thread if you have any updates on it.
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.