I have a MDI Windows Forms application. The main form, among the other events, have following two: Activated and Deactivate. And the problem is that they trigger each other cyclically (event if the event handlers for them are empty). IntelliTrace show me nothing except calling handlers for those events one after another. I don’t understand, why it is happening. Any idea about it?
Share
It turned out, that the answer is obvious. They trigger each other because of Visual studio debugger. When it step into an Activated event handler, it causes deactivate event. Then it goes into an Deactivate event handler after which Activated event is raised again. So, it is just sort of thing which hard to debug by using common methods.