
494 Chapter 10 • Developing Web Applications
4. Build the control by clicking the Build | Build menu item.
We have created our first control. Before seeing how to use it in a
Web form, let’s see the code.This is the code generated by Visual Studio:
Imports System.ComponentModel
Imports System.Web.UI
<DefaultProperty("Text"), ToolboxData("<{0}:SimpleCustomControl
runat=server>
</{0}:SimpleCustomControl>")>
Public Class SimpleCustomControl
Inherits System.Web.UI.WebControls.WebControl
Dim _text As String
<Bindable(True), Category("Appearance"), DefaultValue("")>
Property [Text]() As String
Get
Return _text
End Get
Set(ByVal Value As String)
www.syngress.com
Figure ...