Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inherited label class and mouse events
Message
From
03/02/2004 11:30:34
 
 
To
03/02/2004 11:24:18
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00873386
Message ID:
00873438
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform