Object class in ASP.NET (Visual Studio 2005 Beta 1)

Q

Quickstone

It is kinda unclear what you are trying to do. But if you
are trying to create your own Label (a normal label with
extra functionality), create a new class and then inherit
from a label.

I.e.

Public Class MySoupedUpLabel
Inhertits Label

...

Public Function MyOwnFunction() as Object
...
End Function

...

End Class


You can then easily add this new label to your form but
creating an instance of MySoupedUpLabel. But you can
easily type cast it down to Label.

MySoupedUpLabel is a normal Label (will behave as a
Label) but it can contain extra functions or extra
instance variables defined by you. I do that a lot, and
it is extremly useful.

Hope that helps.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top