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
 
Ad

Advertisements

EvanDavis

Silly Fool
Joined
Jun 20, 2010
Messages
4,928
Reaction score
584
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


 
Joined
Jul 17, 2011
Messages
4
Reaction score
0
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
 
Ad

Advertisements

Joined
Jul 17, 2011
Messages
4
Reaction score
0
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
 

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