VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code will Draw a Rectangle on a form

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

Rate This code will Draw a Rectangle on a form



myGraphics=Graphics.fFormhwnd(Panel1.Handle)
myRectangle=new Ractange(x:=5, y:=5, width:=10,height:=40)
myGraphics.DrawRectangle(pen:=myPen, rect:=myRectangle)

Download this snippet    Add to My Saved Code

This code will Draw a Rectangle on a form Comments

No comments have been posted about This code will Draw a Rectangle on a form. Why not be the first to post a comment about This code will Draw a Rectangle on a form.

Post your comment

Subject:
Message:
0/1000 characters