Click here to Skip to main content
12,696,920 members (29,650 online)
Click here to Skip to main content
Add your own
alternative version


8 bookmarked

ComboBox with proper SelectedIndexChanged support

, 26 Nov 2004
Rate this:
Please Sign up or sign in to vote.
Fixes a bug in the standard ComboBox wrt the SelectedIndexChanged event


If you use a ComboBox and want to change various other controls whenever a new item is selected in the ComboBox, then one event that should help you is the SelectedIndexChanged event. However if you don't change the item by clicking with the mouse or using up or down arrows, this event doesn't fire. So, inspired by Furty (Divider Panel - A Tutorial on creating a custom Windows Forms control from Start to Toolbox), I've thrown together this replacement. It simply fires the SelectedIndexChanged event whenever the KeyUp event fires.

I know this is not a seminal piece of work, but it might help someone out.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Mark Farmiloe
Software Developer (Senior) Churchill Computer Solutions Ltd
United Kingdom United Kingdom
No Biography provided

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 26 Nov 2004
Article Copyright 2004 by Mark Farmiloe
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid