Hello.

I'm using the following code to move borderless that contains an image as its title bar.
vb Code:
  1. Private Sub ImgBanner_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  2.    
  3.     Me.MousePointer = 15
  4.    
  5.     Dim IX As Integer, IY As Integer
  6.    
  7.     IX = X
  8.     IY = Y
  9.    
  10. End Sub
  11.  
  12. Private Sub ImgBanner_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  13.    
  14.     If Button = vbLeftButton Then
  15.        
  16.         Me.Top = X - IY
  17.         Me.Left = X - IX
  18.        
  19.     End If
  20.    
  21.    
  22. End Sub
  23.  
  24. Private Sub ImgBanner_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  25.     Me.MousePointer = 0
  26. End Sub

But, as the mouse is moved, the pointer goes to the top-left corner. I want it remain at same place where it was clicked.