Two ListBox Handlers Short Circuit Each Other
From: Spare Change (sparechange_at_spam.spam)
Date: 09/04/04
- Next message: B. Chernick: "2 column editable Listview?"
- Previous message: Steve Strommen: "Objidl.h problem"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 04 Sep 2004 21:41:55 GMT
Given for a ListBox
this.HLinks.MouseDown += new System.Windows.Forms.MouseEventHandler
(this.HLinks_MouseDown);//
this.HLinks.SelectedIndexChanged += new
System.EventHandler(this.HLinks_SelectedIndexChanged);
It seems I can have one but not the other.
If I use both, then the MouseDown event fires, when I change selection the
SelectedIndexChanged does not fire !
I use the MouseDown for a DragDrop event.
Sometimes I want to DragDrop from the ListBox to a TextBox; other times I
want to respond to a simple change in the selected Index of the TextBox via
a mouse click.
How ?
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 9/3/2004
- Next message: B. Chernick: "2 column editable Listview?"
- Previous message: Steve Strommen: "Objidl.h problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|