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

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top