HelpNeeder
HelpNeeder

Reputation: 6490

Which VS tool would let me to create a grid closest to my specifications?

I'm trying to create a grid of any size in pixels for an application which will let me create small icons. What I mean by pixels here is that each pixel would be a small square sized 5x5 pixels. Each little box should be clickable.

Now, which VisualStudio tool would allow me to create such grid automatically from user input?

Upvotes: 0

Views: 43

Answers (2)

Slugart
Slugart

Reputation: 4680

Assuming you meant to say control instead of tool you could create a TableLayoutPanel and fill it with Buttons or PictureBoxes. You could dynamically set the number of rows and columns and add objects to the panel.

However, unless your app is going to be very small (visually) you will end up creating many controls which will have an impact on performance. In this case the best idea is to follow the instructions in this answer and perform the drawing and hit testing yourself.

Upvotes: 1

TomTom
TomTom

Reputation: 62137

Source Editor. Start programming.

Sorry, you dont ask about .NET classes, you ask explicitly about tools.

Upvotes: 1

Related Questions