title: Controls, properties, events and timers running in design time
body: <p>Im using some custom control in vb.net, where I have a boolean property that, whenever it changes, it starts a timer if it's value is false or stops if it's true.</p>
  
  <p>If the timer runs for several seconds, it raises a messagebox that warns of a problem happening.</p>
  
  <p>The problem is that this messagebox shows even in design time. As I have traced, the default value for the property is false when the control loads in the winform in design time, it seems it starts the timer and when it ends raises the messagebox, this happens whenever I open the project or rebuild it.</p>
  
  <p>I don't get why this behaviour, as this should only happen at run time but it's driving me crazy, I have tried starting the timer directly when the property changes in the setter and creating "onpropertychanged" events, but this still happens in design time.</p>
  
  <p>Anyone has an idea of how to get rid of this or how to solve it to avoid this of happening, is really disturbing that things happens when the program isn't even running.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Regards</p>