drag and drop images into a canvas vb.net

Joined
Jul 17, 2011
Messages
4
Reaction score
0
hello! im new to vb.net and i have a project that will let users drag and drop images into a canvas.

small images will be displayed in the left corner of the form and next is the canvas. that images must be copied when dragged and dropped into the canvas

images in the canvas can still be selected and moved around the canvas.
canvas if possible must be scroll-able and can have different shapes ( square, circle, u-shape, t-shape, v-shape). the user is the one who will choose the shape on run time.

i really don't know where to start, what to study, what to code and so your help will be greatly and deeply appreciated. :)

thanks in advance :D
 
Welcome to the forum :thumb:

Why not have a look at this to get a better understanding of implementing drag and drop in Vb.net


 
Welcome to the forum :thumb:

Why not have a look at this to get a better understanding of implementing drag and drop in Vb.net



thanks EvanDavis! :D
i'm really glad i joined this forum.
thanks for the warm welcome :cheers:

may i just ask if i can use picturebox to be my canvas?

im really confused. i don't know if a single picturebox(my canvas) can handle multiple images that were dragged inside it and can still be treated as individual images and can be moved around the picturebox(canvas).

can u please give me an idea how to solve this?
i will be looking forward to your help.
thanks again :D
 
i actually want to try this solution but i really don't know where to start
i don't know what codes to study, what codes to construct..
really don't have an idea ;(
i'm still a newbie to vb.net

this is actually the solution i want to try out:

- A drawing target is the Graphics object.
- A persistent drawing is a Bitmap object.
- You can create a Graphics object in order to draw on a Bitmap (see
Graphics.FromImage)
- Visible images on the screen are not persistent. You have to draw
everything again in the control's paint event. This is either drawing all
objects or the prepared Bitmap. Outside the Paint event, you can call
TheControl.CreateGraphics.
- To create movable objects, you must maintain a list of them (in any kind
of list) and handle the mouse events in order to move their internal
position. Then repaint everything to get the current image.


credits to Armin :D

i hope i can get any idea on how to construct this in a VB.net code in windows form application :D

thanks in advance :DDDDDDD
 
Back
Top