• We just launched and are currently in beta. Join us as we build and grow the community.

How to Create a Circle in the Form Using VB.Net

Zippy.Toast

Data Ghost
Z Rep
0
0
0
Rep
0
Z Vouches
0
0
0
Vouches
0
Posts
196
Likes
49
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
This time, I will teach you how to create a circle in the form using vb.net. This method has the ability to draw a circle in the form. This circle will automatically appear when the form is already loaded. This program is simple and you can make it as an activity in the school in programming subject. Let's begin.

Creating Application

Step 1

Open Microsoft Visual Studio 2015 and create a new windows form application.
creating_vb_24.png

Step 2

Click the form and go to properties. In the properties, click the event just like a lightning volt and double click the paint

event.
2019-09-19_4.png

Step 3

In the code editor, write the following code for creating a circle.

  1. Private

    Sub

    Form1_Paint(sender As

    Object

    , e As

    PaintEventArgs) Handles MyBase.Paint
  2. Dim

    grapics As

    Graphics = Me.CreateGraphics()

  3. grapics.FillEllipse(System.Drawing.Brushes.Blue, 0, 0,
  4. Me.ClientSize.Width - 5,
  5. Me.ClientSize.Height - 5
  6. )
  7. End

    Subs

The complete source code is included. You can download it and run it on your computer.
For any questions about this article. You can contact me @
Email – [email protected]
Mobile No. – 09305235027 – TNT
Or feel free to comment below.


Download
You must upgrade your account or reply in the thread to view hidden text.
 

452,292

323,341

323,350

Top