Tom Knowlton
asked on
Casting
Private Sub MainForm_VisibleChanged(By Val sender As Object, ByVal e As System.EventArgs) Handles MyBase.VisibleChanged
MessageBox.Show("hi")
'WRONG
If(sender As AKB.Tool.SafetyIsolationEd itor.MainF orm).Then
End If
End Sub
==============
How do I properly cast sender so that it is treated as the Form object?
MessageBox.Show("hi")
'WRONG
If(sender As AKB.Tool.SafetyIsolationEd
End If
End Sub
==============
How do I properly cast sender so that it is treated as the Form object?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Coming over from C# to VB .NET for a few months (contract work).