title: C# execute code after application.run()
body: <p>I have a problem similar to this one: <a href="https://stackoverflow.com/questions/4100428/how-can-i-execute-code-after-my-form-starts">How can I execute code after my form starts?</a></p>
  
  <p>But the solution there won't work for me because I am not running a form, I'm running a single custom control, which is a tray icon that monitors things. (Similar to the Icon Dropbox has, where that is the only interface the user has with the program)</p>
  
  <p>What should I do to run code when the control is created? (which has to be after the message pump starts)</p>