Listing 10
Public Class MultiLangDesginTime Inherits ControlDesigner
Public Overloads Overrides Function GetDesignTimeHtml() As String
Return "<span style='font-family:Verdana;font-size:10pt'>[ MultiLang Design-Time
]</span>"
End Function
End Class
Multi-language custom control has as Design-Time class as
you see in Figure 6. So nothing will be visible at design-time, which makes
designing the page much easier. As you saw in Listing 1, we are assigning the
Design-Time class by Designer(GetType(Class Name))
attribute typically over the CustomMultiLang class.
Figure 6
