* ComboBox.cs: only do Keypress handling in the combo when there
are items in the collection. Fixes #78710.
svn path=/trunk/mcs/; revision=62057
+2006-06-26 Mike Kestner <mkestner@novell.com>
+
+ * ComboBox.cs: only do Keypress handling in the combo when there
+ are items in the collection. Fixes #78710.
+
2006-06-26 Chris Toshok <toshok@ximian.com>
* Binding.cs: make this work bi-directionally. also, clear up
private void OnKeyDownCB(object sender, KeyEventArgs e)
{
+ if (Items.Count == 0)
+ return;
+
switch (e.KeyCode)
{
case Keys.Up: