Given for a ListBox
this.HLinks.MouseDown += new System.Windows.Forms.MouseEventHandler
(this.HLinks_MouseDown);//
this.HLinks.SelectedIndexChanged += new
System.EventHandler(this.HLinks_SelectedIndexChang ed);
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