Drag/Move functionality for Visual C/C++ program

This is a discussion on Drag/Move functionality for Visual C/C++ program within the Windows Programming forums, part of the Platform Specific Boards category; I use Microsoft Visual Studio .NET 2003 and am currently working on a project which requires the ability for the ...

  1. #1
    Registered User starcatcher's Avatar
    Join Date
    Feb 2008
    Location
    Australia
    Posts
    45

    Question 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
    I program solely as a hobby so this is definitely not homework.
    Best thing that's been said to me:
    I was so pleasantly surprised to see another post in this thread, and yours was brilliant; a fitting end to a subject (matrix manipulations of all kinds) that is quite intriguing.
    Read this thread to find out why...
    Cannibalism

  2. #2
    Registered User starcatcher's Avatar
    Join Date
    Feb 2008
    Location
    Australia
    Posts
    45

    Question 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
    I program solely as a hobby so this is definitely not homework.
    Best thing that's been said to me:
    I was so pleasantly surprised to see another post in this thread, and yours was brilliant; a fitting end to a subject (matrix manipulations of all kinds) that is quite intriguing.
    Read this thread to find out why...
    Cannibalism

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 10:17 PM
  3. Bible program - search functionality
    By ChadJohnson in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 04-15-2005, 11:33 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21