Skip to content
  • Linkedin
  • Github
  • About
  • Contact

Fabio Costa

Sharing is learning

Month: August 2009

Written by Fabio CostaAug 17, 2009Feb 3, 2011

Creating a Canvas for Drawing Rectangles in Windows Forms

Setting up the environment: Open Visual Studio and create a new Windows Application; Open the Form1; Drag and drop 5 panels onto the form. Be careful not to drop it onto the panels you are dropping; Select any panel and name it "canvas". Now copy and paste the code bellow:

Cancel
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy