UserControl Load Event

  • Thread starter Thread starter Randall Berkeley
  • Start date Start date
R

Randall Berkeley

Does anyone know of an event that is fired after a
UserControl is created regardless of whether it is visible
or not. I have a data bound UserControl that needs to
populate it's contents when it is loaded at runtime, but
not at design time. If i try to load the data in the
constructor, the DesignMode property is not set so I can't
skip the data loading in the designer. If I handle the
Load event, it doesn't fire when the control is first
created, only after the parent form is hidden, then re-
displayed.

Anyone? Anyone?
 
Hi Randall,

I'd suggest loading the data somewhere outside the control and then just
bind the control to the data using standard Windows Forms data binding.
 
Back
Top