|
-
May 21st, 2013, 12:49 PM
#1
Thread Starter
New Member
What part of the toolbox used?
Hi, this is my first post on the forum.
I have a problem: What part of the toolbox used to create a rectangle in which I can put 15 small squares, these squares I will move.
-
May 21st, 2013, 12:58 PM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|