ComboBox before drop down event?

StewartBW 565 Reputation points
2024-05-18T00:15:41.8566667+00:00

Hello

I'm looking for an event in ComboBox in .net framework WinForms which fires before the drop down menu is going to drop, when DropDownStyle is set to DropDown, so when user clicks on the far button, I add some items to the list on the fly and then the list shows. is there such event? thanks

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,420 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,612 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. KOZ6.0 5,380 Reputation points
    2024-05-18T06:35:43.07+00:00

    No events before DropDown event.

    If you were to implement it, you would want it to occur when F4 is pressed in the KeyDown event and when the mouse position is within the button in WM_LBUTTONDOWN.

    The position of the button can be obtained using GetComboBoxInfo function.