Results 1 to 1 of 1

Thread: Drag & Drop with Frame / Groupbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    89

    Lightbulb Drag & Drop with Frame / Groupbox

    Hello,

    I have 2 forms:

    1) 6 pictures each in a PictureBox control
    (attached.... picturebox.GIF)

    2) 6 FrameBox / Groupboxes that contain the picture's information.

    I have implemented a Drag & Drop (kind of a "Drag and swap" places) code like this for the first form with 6 pictures:

    VB Code:
    1. Private Sub Picture2_DragDrop(Source As Control, X As Single, Y As Single)
    2.     Dim objPic As StdPicture
    3.    
    4.     Set objPic = Picture2.Picture
    5.     Set Picture2.Picture = Source.Picture
    6.     Set Source.Picture = objPic
    7. End Sub

    This code allows me to arrange the 6 pictures however I like, for example: move the first image into the 6th picturebox's place and the 6th picture get automatically moveed to the 1st.

    Is there an equivalent code for this so that at run-time while I'm rearranging the pictures, the second form will be updated immediately with the new information changed from the 1st and 6th spots?

    In other words: the 6th Frame get's switched with the 1st Frame?

    Thanks for your suggestions!

    Chris
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width