How can I choose which event I will show when I double click on a control in the format designer of the win Am I
For example, when I click on a text box twice, "text-span" shows the event winning form if I wanted to show this "GotFocus" event, How could I guess I assure the text box and set some assets, but I can not find that property
Change the [DefaultEvent] attribute by inheriting the control:
using the system; Using System.ComponentModel; Using System.Windows.Forms; [DefaultEvent ("GotFocus")] Category MyTextBox: Textbox {}
Comments
Post a Comment