Click here to Skip to main content
Click here to Skip to main content

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

Introduction

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.

License

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)
United Kingdom United Kingdom
No Biography provided

Comments and Discussions

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