by Siyabonga Mlaba (1 Submission)
Category: Graphics
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Mon 26th October 2009
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
This code will Draw a Rectangle on a form
API Declarations
Dim myRectangle as Rectangle
Dim myPen as new pen(color.Blue) 'pen color
myGraphics=Graphics.fFormhwnd(Panel1.Handle)
myRectangle=new Ractange(x:=5, y:=5, width:=10,height:=40)
myGraphics.DrawRectangle(pen:=myPen, rect:=myRectangle)