UserControl.DesignerInitialize Method

Definition

Performs any initialization steps on the user control that are required by RAD designers.

C#
public void DesignerInitialize();

Examples

The following example calls the DesignerInitialize method during the Page_Init stage of request processing. This makes the user control available to a RAD designer such as Visual Studio 2005.

C#

// Initialize the UserControl object that has been created declaratively. 
myControl.InitializeAsUserControl(this);

Applies to

Proizvod Verzije
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also