drag'n drop on many bitmap in picturebox

B

Bob Speaking

Hi to all,
I have a question related to drag'n drop of many small bitmap on a
picturebox :

introduction

I've write a small windows c# application that place a small bitmap inside a
PictureBox. The code places it in a virtual grid (for example if I have a
picturebox of 400x400 I assume it's composed by 20x20 squares of 20x20
pixels).
With 2 lines of code I place the bitmap aligned to the grid. (if i click in
coordinates 7;5 it places the image in 0,0, etc).

The application will permits the insert of more bitmap (all small squares,
like a minimap composer).

And now the problem...
I need to use Drag'n drop on these bitmaps...
but how can I attach event handlers to these bitmaps?
I think I need to encapsulate the single bitmap in one control of some type
that support the event handling... right?

PS.
I'm relatively new to windows form programming, I come from asp.net....
where the drag'n drop is fantasy lol:p)


Thanks and excuse me for some bad english :)

Bob
 
B

Bob Speaking

I've found a solution!

I use many picturebox (with a bitmap inside) located on the form instead a single big picturebox with many bitmap inside...
comment suggestions? :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top