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.
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.