Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, _
  2.     ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
  3.         ' Determine the CheckState of the check box.
  4.         If CheckBox1.CheckState = CheckState.Checked Then
  5.             ' If checked, do not allow items to be dragged onto the form.
  6.             Me.AllowDrop = False
  7.         End If
  8. End Sub