Errors when turning Option strict On

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello,
I get the following error when turning the Option Strict option on and seem not to be able to find a solution. Any help will be very much appreciated. Thank You.<br/>

The Error is:
Error 1 Method Private Sub DesignChanged() does not have a signature compatible with delegate Delegate Sub EventHandler(sender As Object, e As System.EventArgs)
My Code:
Private Sub DesignChanged()<br/>
If Not Me.Visible Then<br/>
Return <br/>
End If<br/>
bDirty = True <br/>
RunCalc() <br/>
If pnlWallSection.Visible Then <br/>
pnlWallSection.Invalidate() <br/>
End If<br/>
End Sub<br/>
<br/>
<br/>
Private Sub EnableOnChangeEvent()<br/>
AddHandler ud1.ValueChanged, AddressOf DesignChanged <br/>
AddHandler cmd2.SelectedIndexChanged, AddressOf DesignChanged <br/>
AddHandler cmb3.SelectedIndexChanged, AddressOf DesignChanged <br/>
AddHandler ud4.ValueChanged, AddressOf DesignChanged <br/>
AddHandler ud5.ValueChanged, AddressOf DesignChanged <br/>
End Sub

View the full article
 
Back
Top