Click here to Skip to main content
11,578,241 members (63,317 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Run method one time only

, 18 Jan 2013 CPOL 0
You can remove the event handler when it is executed. In fact, any event handler that you add manually should typically also be removed manually (at some point).void Myevent(object sender, EventArgs e){ Application.Idle -= Myevent; // Other code here (assuming you don't want to...

Revisions


  

Compare Revision Minor Date Status Editor
4 - publicly available No 18-Jan-13 19:30 Available Philippe Mori
Updates in content. 13 changes had been made.
3 No 18-Jan-13 19:28 Available Philippe Mori
Updates in content. 84 changes had been made.
2 No 18-Jan-13 19:26 Available Philippe Mori
Updates in content. 39 changes had been made.
1 No 18-Jan-13 19:20 Available Philippe Mori

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Philippe Mori
Software Developer (Senior)
Canada Canada
Programmer at Maid LABS from 2003 (www.maidlabs.com)

Programmer-Analyst at Viasat Geo Technoligies from 1995 to 2002 (www.viasat-geo.com).

I have studied at École Polytechnique de Montréal in computer engineering.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 18 Jan 2013
Article Copyright 2013 by Philippe Mori
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid