Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms
public class MainClass
public Shared Sub Main
' Create a Size
Dim sz As New Size(12, 12)
' Create a Point
Dim pt As New Point(20, 20)
' Subtract point and size
pt.X -= sz.Width
pt.Y -= sz.Height
Console.WriteLine("Subtraction :" + pt.ToString())
End Sub
End class
|