I will start by explaining my scenario in code:
public class A { } public class B : A { } public class C : B { } public class D { } public c
For VB.NET with Visual Studio 2008, you can check it like:
'MyTextBox control is inherited by Textbox If Ctl.GetType.Name = "MyTextBox" then End If