Disable the selection icon and the drop-down button icon of the tool drop-down list

Is there a way to prevent the tool drop-down button from turning off (without turning it off)?

I see that it has a property called CanSelect , but it is read-only.

Regarding my second question related to this control:

Is there a way to hide the drop-down symbol (black rectangle pointing down) of the toolbar drop-down list?

I want this not to be selected, and to hide the dropdown symbol so that the button will resemble the status bar icon next to the status icon. If you can give suggestions about this, it will be very appreciated.


I did not understand that the status bar label of the toolbar allows you to create images ... Thus, I do not need to fake this with the control. Thanks to everyone.

+4
source share
3 answers

Question: Is there a way to hide the drop-down symbol (black rectangle pointing down) of the tool drop-down list button?

paste the code into the form designer.

 toolStripDropDownButton1.ShowDropDownArrow = false; 
+3
source

A little more complicated, but try to impose it with some control over it with an opacity of almost but not equal to 0.

0
source

I think the problem is that you are trying to use the wrong controls for what you are trying to pass to your user.

Button: If the button is not designed to interact with you, you must disable it; this is a common metaphor in software. What you want to do in the styling method is your prerogative. Alternatively, you can just focus and do nothing. However, if your click does nothing and the button is not disabled, your users will be confused.

DropDownButton: It looks like you are trying to do this, it is a programmatic control of which button action is available to the user, but do not want them to change the action that they can trigger. If so, you should consider that there are several buttons that are hidden, except for the one you want to show at that time. This will give the user an explicit expectation of behavior.

Obviously, I am making some assumptions here, but in order to give a more detailed answer, I will need more detailed information about the specific reason why you want to do this in order to understand why you are approaching it this way.

0
source

All Articles