Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inherited label class and mouse events
Message
De
03/02/2004 11:30:34
 
 
À
03/02/2004 11:24:18
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00873386
Message ID:
00873438
Vues:
21
Bonnie:

Here's my code for my label.

Private Class lblReportBase : Inherits System.Windows.Forms.Label
Private sReportID As String
Dim sWidth As Integer = 300
Dim sHeight As Integer = 23

Public Sub New()
MyBase.New()
MyBase.Size = New System.Drawing.Size(sWidth, sHeight)
MyBase.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
End Sub

Private Sub MyBase_Hover(ByVal sender As System.Object, ByVal e As System.EventArgs)
' on the hover event - underline the label text or something
MyBase.Font = change it!
End Sub

Does this make sense? I want to have each label to inherit a hover event.

Best, Steve
Steven Ellis
steve@ellisconnection.com
617 680-5997
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform