This documentation is archived and is not being maintained.

CreateUserWizardDesigner Class

Extends design-time behavior for the CreateUserWizard Web server control.

Namespace:  System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Public Class CreateUserWizardDesigner _
	Inherits WizardDesigner
'Usage
Dim instance As CreateUserWizardDesigner

Extend the CreateUserWizardDesigner class if you want to create a designer for a class that extends the CreateUserWizard Web server control.

The following code example shows how to extend the CreateUserWizardDesigner class and display debugging information on the design surface in case of an error.

Imports System
Imports System.IO
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.Design.WebControls
Imports System.Web.UI.WebControls
Imports Examples.WebNet

Namespace Examples.WebNet
    ' Create a class that extends CreateUserWizardDesigner. 
    Public Class MyCreateUserWizardDesigner
        Inherits CreateUserWizardDesigner

        ' This variable contains debugging information. 
        Private debugInfo As String = "Useful information." 

        ' Override the GetErrorDesignTimeHtml method to add some more 
        ' information to the error message. 
        Protected Overrides Function GetErrorDesignTimeHtml(ByVal e As Exception) As String 
            ' Get the error message from the base class. 
            Dim htmlStr As String
            htmlStr = MyBase.GetErrorDesignTimeHtml(e)

            ' Append the debugging information to it.
            htmlStr &= "<br>DebugInfo: " & debugInfo

            ' Return the error message. 
            Return htmlStr
        End Function 
    End Class 

End Namespace

The following code example shows how to associate a control class with the designer defined in the preceding example.

Imports System
Imports System.IO
Imports System.ComponentModel
Imports System.Web.UI.WebControls
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.Design.WebControls
Imports Examples.WebNet

Namespace Examples.WebNet
    ' Create a class that extends CreateUserWizard and uses 
    ' MyCreateUserWizardDesigner as its designer.
    <Designer(GetType(Examples.WebNet.MyCreateUserWizardDesigner))> _
    Public Class MyCreateUserWizard
        Inherits CreateUserWizard
        ' Put your own code here 
    End Class 
End Namespace

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: