viewing events in winforms -


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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -