Drag/Move functionality for Visual C/C++ program
I use Microsoft Visual Studio .NET 2003 and am currently working on a project which requires the ability for the user to be able to move objects at runtime. At the moment I'm trying to use a 'Windows Forms Application (.NET)' project to do this.
The idea is for the user to be able to move a picturebox or something (using click and drag and drop) during runtime, pretty much like during the creation process of the form.
I do not mean dragging a file into the program so it can open it or anything, but moving objects around on the form itself.
Thank you in advance to anyone who can help me,
Philipp
Creating a new control in runtime
I've managed to work out how to drag controls thanks to some help.
I now have another question:
How can you create a new control during runtime?
For example, how could I create a new label in my Form during runtime when the user clicks a button or something?
Thanks,
Philipp