Hmm...Ligemeget hvor mange ting og sager jeg slår til i properties menuen så siger jeg stadigvæk at der skal noget kode til, fordi picture1 drag drop sub har jeg, men så snart at jeg dropper den bliver den bare hvor den er.
Private Sub Picture1_DragDrop(Source As Control, X As Single, Y As Single) If TypeOf Source Is PictureBox Then Picture1.Picture = Source.Picture End If End Sub
Private Declare Sub ReleaseCapture Lib \"user32\" () Private Declare Function SendMessage Lib \"user32\" Alias \"SendMessageA\" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Long) As Long
Private Function FlytObject(ObjecthWnd As Long) ReleaseCapture Call SendMessage(ObjecthWnd, &HA1, 2, 0&) End Function
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 1 Then FlytObject Picture1.hWnd End If End Sub
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.