ibennz

Alpha4niggers

Oct 30th, 2013
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.03 KB | None | 0 0
  1. Class Alphashit
  2.     Inherits ThemeControl154
  3.     Dim lb As New Windows.Forms.Label
  4.     Sub New()
  5.         SetStyle(DirectCast(139286, ControlStyles), True)
  6.         SetStyle(ControlStyles.Selectable, False)
  7.         IsAnimated = True
  8.         Font = New Font("Verdana", 8.0F, FontStyle.Regular)
  9.         Size = New Size(39, 13)
  10.  
  11.  
  12.     End Sub
  13.  
  14.     Private _text As String = "Label"
  15.     Public Overrides Property Text As String
  16.         Get
  17.             Return _text
  18.         End Get
  19.         Set(ByVal value As String)
  20.             _text = value
  21.             Invalidate()
  22.         End Set
  23.     End Property
  24.  
  25.     Protected Overrides Sub ColorHook()
  26.  
  27.     End Sub
  28.  
  29.     Protected Overrides Sub PaintHook()
  30.         G.Clear(BackColor)
  31.         G.DrawString(Text, Font, New SolidBrush(Color.FromArgb(mAlpha, Color.FromArgb(69, 202, 83))), New PointF(0, 0))
  32.      
  33.     End Sub
  34.     Dim mAlpha As Integer = 0
  35.     Protected Overrides Sub OnAnimation()
  36.         If Not mAlpha = 255 Then
  37.             mAlpha += 1
  38.         End If
  39.     End Sub
  40. End Class
Advertisement
Add Comment
Please, Sign In to add comment