UserControl.Load not fired

  • Thread starter Thread starter Tibor Jakab-Barthi
  • Start date Start date
T

Tibor Jakab-Barthi

Hi!

I have a TabControl-like control derived from UserControl, with pages
derived from Panel. The Parent of the pages is the UserControl.

The problem is that if I add another user control to a page, this added
control's Load event is not fired. If i add the same user control to a form
or a panel, the event is fired.

Do you have any hint what am i doing wrong?

I didn't override my control's Load event, so not calling base.Load is not
the problem.

Regards, Tibor
 
It was my mistake, I set Visible = false in the page's constructor (the one
derived from System.Windows.Forms.Panel).

Tibor
 
Back
Top