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.
Dim mPreviousCircle As Rectangle
Dim mNewCircle As Rectangle
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim g As Graphics = Me.CreateGraphics
Dim p As New Pen(Me.BackColor)
g.DrawEllipse(p, mPreviousCircle)
Dim w As Single = 50
Dim h As Single = 50
Dim x As Single = (Me.ClientSize.Width / 2) - (w / 2)
Dim y As Single = (Me.ClientSize.Height / 2) - (h / 2)
mNewCircle = New Rectangle(x, y, w, h)
mPreviousCircle = New Rectangle(x, y, w, h)
p = New Pen(Color.OrangeRed)
g.DrawEllipse(p, mNewCircle)
End Sub
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
Form1_Paint(Nothing, Nothing)
End Sub
Dim mPreviousCircle As Rectangle
Dim mNewCircle As Rectangle
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
creategraphics()
End Sub
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
creategraphics()
End Sub
Private sub CreateGraphics()
Dim g As Graphics = Me.CreateGraphics
Dim p As New Pen(Me.BackColor)
g.DrawEllipse(p, mPreviousCircle)
Dim w As Single = 50
Dim h As Single = 50
Dim x As Single = (Me.ClientSize.Width / 2) - (w / 2)
Dim y As Single = (Me.ClientSize.Height / 2) - (h / 2)
mNewCircle = New Rectangle(x, y, w, h)
mPreviousCircle = New Rectangle(x, y, w, h)
p = New Pen(Color.OrangeRed)
g.DrawEllipse(p, mNewCircle)
End Sub