Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Run method one time only

, 18 Jan 2013
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
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)

About the Author

Philippe Mori
Web Developer
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.

| Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 18 Jan 2013
Article Copyright 2013 by Philippe Mori
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid