Results 1 to 2 of 2

Thread: What part of the toolbox used?

Threaded View

  1. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,376

    Re: What part of the toolbox used?

    By rectangle, I assume that you mean a panel. A panel is a container, and is used primarily to hold a collection of controls. It's found under Toolbox -> Containers -> Panel. As for the 15 smaller squares, you could again use a panel, a picturebox, or you could even draw series of rectangles using GDI+. Pictureboxes can be found in Toolbox -> Common Controls -> Picturebox, while drawing the rectangles would be done in the panel's paint event. Moving the squares can be a little tricky, as you'll have to handle the: mouse down, mouse move, and mouse up events.
    Last edited by dday9; May 21st, 2013 at 01:00 PM. Reason: msdn links
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width