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)
Thanks and excuse me for some bad english
Bob
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)
Thanks and excuse me for some bad english
Bob