Return to site

Contoh program sederhana vb net

broken image

Path.AddEllipse(0, 0, Me.ClientSize.Width, Me.ClientSize.Height)ĭim rc As Rectangle = New Rectangle(0, 0, Me.ClientSize.Width, Me.ClientSize.Height)ĭim _InsideBrush As Brush = Brushes.Yellowĭim _OutlinePen As Pen = New Pen(Color.Black, 2)ħ. Insert the code below under the writing 'add your custom paint code here'ĭim path As GraphicsPath = New GraphicsPath()

broken image

In Code View, add Import(s) for namespace System.Drawing and System.Drawing2D.Ĥ. Right click on the Solution Explorer, choose 'Add New Item', and then select 'Custom Control'. Create a New Project, name it CustomShapeProject, project type is Windows Application.Ģ. We will start this example by simple shapes such as Ellipse and Rectangle, and after that we will talk about the custom shape control (using polygons).ġ. NET, this circle control is no longer provided in the toolbox). I found the idea of this 'Custom Shape Area' control on an Article in CodeProject that explains about making a VB6 circle shaped control (in VB.

broken image

In the original application, the user can view a map of a floor and click at a shop (the shops are shaped like the original, which is why a custom shape control is required), to view info about the shop. This example is only a small part of the original application, which is a Shopping Mall floor-plan. This time we will try to create a 'Custom Shape Area' control.

broken image

Indonesian Version Available Below (After The English Version)

broken image