Extend Literal Control

S

shapper

Hello,

I want to create a control which is based in Literal control.
I created various properties. Size, Name, City, etc.

Basically, I want the Text of the literal control to be equal to Size +
Name + City, etc.

This is what I have:

Public Class ExtendedLiteralControl
Inherits LiteralControl

Private _Size As String
<DefaultValue("")> _
Public Property Size() As String
Get
Return _Size
End Get
Set(ByVal value As String)
_Size = value
End Set
End Property ' Size
....

My problem is how to define the Literal Text property using the new
properties I created.

And are the following code lines ok?
Public Class ExtendedLiteralControl
Inherits LiteralControl

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top