I am trying to use C # WinForms combo like the following:
a) Regular use: If the "down arrow" button is pressed, the dropdown area opens and the user selects the desired object - there is no problem ..
b) Advanced Usage: If the user is editable If you click on the controls of the dropdown, another dialog opens with the advanced selection mechanism. Land.
Currently, I am calling advanced dialog in the Combalbox onclick event handler. However, regular use of dropdownbox is no longer usable. The advanced dialog is open, even if you click on the drop down arrow only.
I was not able to find another potential event that I could use, so I think that I should check on the user's click event handler in the editable portion of the control or on the control button < / P>
How to do any ideas there effectively?
There are two incidents of interest; Dropdown and click "Normal" handling the dropdown in the way. For the click, you can actually try to handle the mousedown, which includes the coordinates to turn on the coordinates (which are based on the cursor position on the whole screen) in relation to the control, and if the mouse is currently in control If the arrows are on the part, then just exit and get the default behavior. Otherwise, show a more advanced dropdown.
Comments
Post a Comment