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.