This works just fine:
protected void txtTest_Load(object sender, EventArgs e) { if (sender is TextBox) {...} }
Is ther
Couldn't you also do the more verbose "old" way, before the is keyword:
is
if (sender.GetType() != typeof(TextBox)) { // ... }