Custom Control Designers : Design-time HTML
page 5 of 8
by . .
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 34071/ 48


The Problem

The problem with this code is the controltext array. The problem is that this array is not assigned at design-time and it is assigned at run-time (although this can be changed). To fix this, we will have to use a static array for our code -

Dim controltext() As String = {"[Sample 1]", "[Sample 2]", "[Sample 3]"}

Although this is not an actual rendering of the control, it does provide what we want to achieve -

  • A hint at what the control may/will look like

  • The approximate size of the control

  • The design and style of the control

Later in this article we will be adding a more dynamic feel to the control.

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 

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

©Copyright 1998-2024  |  Page Processed at 2024-07-24 8:30:57 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search