Will that only work on dynamically created controls?

What would be the VB.NET version of that?