Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Form1_Resize(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Resize
MakeGradient()
End Sub
Private Sub Form1_Activated(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Activated
MakeGradient()
End Sub
Private Sub MakeGradient()
Dim objBrush As New Drawing2D.LinearGradientBrush _
(Me.DisplayRectangle, _
Color.Blue, _
Color.AliceBlue, _
Drawing2D.LinearGradientMode.Vertical)
Dim objGraphics As Graphics = Me.CreateGraphics()
objGraphics.FillRectangle(objBrush, Me.DisplayRectangle)
objBrush.Dispose()
objGraphics.Dispose()
End Sub
Dim gr As Graphics = Me.CreateGraphics
Dim rect As New Rectangle(0, 0, 10, 10)
Private xStartColor As Color = Color.LightSteelBlue
Private xEndColor As Color = Color.SteelBlue
Private xLinearGradientMode As LinearGradientMode = LinearGradientMode.Vertical
Dim br As New LinearGradientBrush(rect, xStartColor, xEndColor, xlineargradientmode)
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
UpdateGraphics()
End Sub
Private Sub UpdateGraphics()
gr = Me.CreateGraphics
gr.Clear(Me.BackColor)
If Me.Width > 0 And Me.Height > 0 Then
rect = New Rectangle(0, 0, Me.Size.Width, Me.Height)
br = New LinearGradientBrush(rect, xStartColor, xEndColor, xLinearGradientMode)
gr.FillRectangle(br, rect)
End If
End Sub
Private Sub UserControl1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
UpdateGraphics()
End Sub
me.BlendPanel1.add