How to get "drop down button" ComboBox size in C # winforms

How can I get the size of a DropDown Button on a ComboBox ?

For anyone who doesn't know what I mean, it is the Button usually located to the right of a ComboBox containing the down arrow. When clicked, this expands the DropDown section.

For further clarification, this is a button in the red circle in the image below.

enter image description here

+8
c # winforms combobox
source share
1 answer

For such constants, you can use the GetSystemMetrics function; C # quick analog of SystemInformation class:

  using System.Windows.Forms; ... int arrowWidth = SystemInformation.VerticalScrollBarWidth; 
+10
source share

All Articles