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

Problems

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-2014 ASPAlliance.com  |  Page Processed at 8/29/2014 12:03:47 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search