Solved

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

Posted on 2010-11-11
4
505 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
Comment Utility
SelectedIndexChanged
0
 
LVL 17

Expert Comment

by:Zhaolai
Comment Utility
Or SelectionChangeCommitted
0
 
LVL 32

Expert Comment

by:Erick37
Comment Utility
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
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now