>>System.Web.UI.WebControls.Image >> System.Web.UI.WebControls.ImageMap >>>>That means ImageMap is Image (and it's also of type object).
>>if ( loControl.GetType() == System.Web.UI.WebControls.Image ) >>>
Module istest Sub Main() Dim str As string = "Hello" Dim test As object = 2 MsgBox("TypeOf str Is string? " & TypeOf str Is System.String) MsgBox("TypeOf str Is object? " & TypeOf str Is System.Object) MsgBox("TypeOf test Is integer? " & TypeOf test Is System.Int32) MsgBox("TypeOf test Is object? " & TypeOf test Is System.Object) Dim type_1 as System.Type = System.Type.GetType("System.String") Dim type_2 as System.Type = System.Type.GetType("System.Object") Dim type_3 as System.Type = System.Type.GetType("System.Int32") Dim type1 as System.Type = str.GetType() Dim type2 as System.Type = test.GetType() if ( type1.Equals( type_1) ) MsgBox( "str is string") end if if ( type1.Equals( type_2) ) MsgBox( "str is object") end if if ( type2.Equals( type_2) ) MsgBox( "test is object") end if if ( type2.Equals( type_3) ) MsgBox( "test is integer") end if end sub end modulePS: VB coding sounded to be rocket science to me:)