Remove handle when control capture form is closed /o\

This commit is contained in:
Jonathan Jenne
2019-10-24 16:37:07 +02:00
parent c93008c3ed
commit a7483358e8
2 changed files with 8 additions and 4 deletions

View File

@@ -46,6 +46,10 @@ Public Class frmControlCapture
AddHandler Watcher2.Changed, AddressOf Watcher_Changed
End Sub
Private Sub frmControlCapture_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
RemoveHandler Watcher2.Changed, AddressOf Watcher_Changed
End Sub
Private Sub Watcher_Changed(sender As Object, e As String)
Try
' === CONTROL NAME ===