Solved

Leave event does not fire on Combo box all the time.

Posted on 2010-11-11
4
535 Views
Last Modified: 2012-05-10
When I move from  the combobox on my form I have a leave evernt coded.   My problem is that it does not always fire.   What is the best event to use so I can test the contents of the combobox once a selection has been made there it be automatcially or by a person clicking the drop down.

Thanks
0
Comment
Question by:running32
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 34111931
SelectedIndexChanged
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 34112464
Or SelectionChangeCommitted
0
 
LVL 32

Expert Comment

by:Erick37
ID: 34112605
SelectedIndexChanged will fire each time a new selection is made by the user or from code.
SelectionChangeCommitted will fire when the user has made a new selection, but not from code.
Both will fire while the focus is still on the control.

If you need to check it once, you may try the Validated event, but if the Leave event is not firing, then the Validated event may not fire either.
0
 

Author Closing Comment

by:running32
ID: 34116142
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question