i need the picture1_mousemove function only when i click the mnuFileList(index=1), not function when load the form.so, how to improve code below.

VB Code:
  1. Private Sub mnuFileList_Click(Index As Integer)
  2.     If Index = 1 Then
  3.         CommonDialog1.ShowOpen
  4.         Picture1.Picture = LoadPicture(CommonDialog1.FileName)
  5.     ElseIf Index = 2 Then
  6.         Unload Me
  7.     End If
  8. End Sub
  9.  
  10. Private Sub picture1_mousemove(button As Integer, shift As Integer, X As Single, Y As Single)
  11.     Text5.Text = X
  12.     Text6.Text = Y
  13. End Sub