Click here to Skip to main content
11,573,322 members (50,096 online)
Click here to Skip to main content

ComboBox with proper SelectedIndexChanged support

, 26 Nov 2004 29.6K 547 8
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

Share

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
Web04 | 2.8.150624.2 | Last Updated 26 Nov 2004
Article Copyright 2004 by Mark Farmiloe
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid