-
I'm working with a Picture Box graph and I'm trying to move a curve within the graph. What I want to do is to select a curve from the graph by clicking on it and then drag it to the desired position. I couldnt think of any other way but to save the contents of the picture box without that curve (but with the rest of the graph) and then redraw the saved contents plus the new position of the dragged curve with every mouse_move event in order to create a drag and drop effect. I'm not exactly sure how to save the picture box contents to the clipboard or whatever. Any advice? Is there a better way? Sorry if its confusing.
-
How about:
Code:
Clipboard.SetData Picture1.Picture
-
To paste the data, you can use this:
Code:
Picture1 = Clipboard.GetData(vbCFBitmap)