Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

ComoBox MouseDown Event Problem

$
0
0
I have numerous ComboBoxes with DropDownStyle = DropDownList and several items in its Collection on a WinForm. When each ComboBox is populated, an AddHandler event is inserted,

"AddHandler ComboBox.MouseDown, AddressOf MouseDownEvent_ComboBox". This even check for both Left & Right mouse down events. When I select a ComboBox with the left mouse, it drops down the items, which is fine, but I want to be able to display the list and then select an item, which I can't.

How do I select the ComboBox to drop down its list and then select an item. I want to use the left mouse to trigger a display of the item's data stored in a SQL table. And, I want the right mouse click to allow me to change or delete the selected item.  I'm not hung up on mouse buttons, any method will do. In essence, I want to always select the items variables from a Sql table. Then I want something to tell the called  dialog to display, edit, delete or copy with changes the item selected.

I can do all this with a label, but the mouse click to drop down the ComboBox items is the fly in the ointment.


Terry 01


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>