Creating Multi-Language Custom Control
page 6 of 8
by Abdulla Hussein AbdelHaq
Feedback
Average Rating: 
Views (Total / Last 10 Days): 34973/ 56

Supporting HTML Design-Time

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


View Entire Article

User Comments

Title: Good Article   
Name: Vagueraz
Date: 2008-07-04 5:03:31 AM
Comment:
Very Good and Strong Article , and it's not only useful for devlopers also for end-users ....
Title: Outstanding Work   
Name: Jean-Pierre Jamous
Date: 2008-07-02 10:01:11 PM
Comment:
Extremely nice. It comes handy for developers. You've done a tremendous job at it. Keep up the great work.
Title: Very good article   
Name: Anas al-qudah
Date: 2008-07-02 4:03:52 AM
Comment:
It's realy Very good article and help me.
Thanks thanks alot.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-19 8:31:00 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search