Drag/Drop onto Picture Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Williams

    Drag/Drop onto Picture Control

    I am trying to get the following to work so would like some guidance on
    how to achieve what I need.

    1. I have a form which has a tab control.
    2. On the 4th TabPage I have 5 picture boxes.
    3. These picture boxes are normally populated from a file(s) with a set
    path and filename.

    I have this working

    I now want to be able to drag a jpg file from windows explorer onto any
    picture box which does not contain an existing image and have the
    following occur.

    4. This file is moved from its current location to a set path and
    filename I give it.
    5. The image is displayed in the Picture box.

    I would appreciate any help on the processes need to perform 4 and 5.

    Regards
    Jeff


  • Ben Rush

    #2
    Re: Drag/Drop onto Picture Control

    Well, you'll have to handle the drag and drop effect which is easy and very
    well documented online:



    You'll also have to handle generating of the thumbnail, which is also easy
    and very well documented online:



    --
    ~~~~~~~~~~~
    Ben Rush




    "Jeff Williams" <jeff.williams@ hardsoft.com.au wrote in message
    news:130a6eotfg sv6fb@corp.supe rnews.com...
    >I am trying to get the following to work so would like some guidance on how
    >to achieve what I need.
    >
    1. I have a form which has a tab control.
    2. On the 4th TabPage I have 5 picture boxes.
    3. These picture boxes are normally populated from a file(s) with a set
    path and filename.
    >
    I have this working
    >
    I now want to be able to drag a jpg file from windows explorer onto any
    picture box which does not contain an existing image and have the
    following occur.
    >
    4. This file is moved from its current location to a set path and filename
    I give it.
    5. The image is displayed in the Picture box.
    >
    I would appreciate any help on the processes need to perform 4 and 5.
    >
    Regards
    Jeff
    >
    >

    Comment

    Working...