Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make Visual Studio 2010 show all available events for RadioButton

I'm running Visual Studio 2010, maybe it applies for other versions as well. When I'm in the designer and looking at the events for the RadioButton, the MouseDoubleClick event is not there:

Visual Studio 2010 Designer Events

However if I go to code view and looks at the events for the RadioButton there, I can see the MouseDoubleClick event:

enter image description here

It seems like VS designer is only showing the inherited events, and not the ones that is directly implemented in the RadioButton class. How can I make all of them show up in the designer?

Edit: As both Hans Passant (comment to the question) and lomed (accepted answer) points out, this is intentionally hidden. I'm using ReSharper, and that is probably why it shows up in IntelliSense, something that lomed pointed out as well in the comments of his accepted answer.

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public event MouseEventHandler MouseDoubleClick;
like image 653
jmelhus Avatar asked Dec 04 '25 15:12

jmelhus


1 Answers

Use the Object Browser or in code-meta-data (Right Click-> Go To Definition or F12) or MSDN.

in Object Browser(F2) Set enable "Show Hidden Type And Member" (see: Did you know… You can hide or show hidden members and types in the Object Browser?, and Viewing the Structure of Code) RadioButton.MouseDobleClick in object explorer

The way it hid the event you can see in his Signature:

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public event MouseEventHandler MouseDoubleClick;
like image 81
dovid Avatar answered Dec 07 '25 05:12

dovid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!