Wow that seems strange, why couldn't we just tell windows that we clicked on the PictureBox? and still allow windows to handle all the moving etc.
These new pictureboxes that I'm producing, can I get them to move again?
VB Code:
Private Sub srm00_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = vbLeftButton Then If Index = 0 Then Load srm00(srm00.UBound + 1) 'inc index by one ? srm00(srm00.UBound).Visible = True ' make it visible srm00(srm00.UBound).ZOrder 0 ' make it top layer ' ReleaseCapture SendMessageLong srm00(srm00.UBound).hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0& End If End If End Sub
Here's the code (from iPranks post) only slightly edited, I'm trying to work out at what point its dropped and haw can I locate its Index. I've a feeling I need its 'hwnd'.
Perhaps I could click on the PictureBox, and then click on an arrow buttom to move it? Does that sound feasible.![]()




Reply With Quote