How to tell when I leave a Combobox vs SelectedIndex changed?????

  • Thread starter Thread starter Steven Thomas
  • Start date Start date
S

Steven Thomas

I have a combobox where I populate the remaining items on the screen
according to what is picked in the combobox(dependent prompting). Is
there anyway to tell when a user looses focus on the combo versus
selected index changed?

So, say the user clicks on the combobox and types a letter to go to
the values starting with "S" the page loads, then they open the combo
and pick the value they want and the page loads a gain. I only want to
load after the user has picked the value they want???

Thanks
 
I have found the SelectionChangeCommitted event handy for this.
 
Thanks for the information, however it only seems to apply to the
windows form. Do you know how to handle it in the web page? ASP.NET?
 
Ahh. In that case you're going to have to apply javascript to either
perform a postback onleave, or have javascript itself do whatever UI changes
you want.

You'll probably have better luck in the
microsoft.public.dotnet.framework.aspnet group. I'm not sure you're going
to like what happens when you have javascript posting back your page when
focus leaves a dropdown -- or at least, you'll have to do some work to get
around the quirks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top