N

N

  • NA
  • 15
  • 0

how should I finish this statemnt tempChild.Activated +=

Mar 6 2009 2:04 PM

I have a number of mdi child forms on a parent form. I can rotate through them.

My problem is  the active child form needs to do a process when activated or that has the focus. When I found Activated, I said that's what I need. But the usage is a little more complex than  tempChild.Activated().

The error I recv'd was:

Error 2 The event 'System.Windows.Forms.Form.Activated' can only appear on the left hand side of += or -= 

So what's the proper way to ask?

Thanks

Lecutus