I've been a good boy and have Option Strict = on. However I've now run into a snag.

I need to access a property from a dynamically added user-control, normally I would use something like

VB Code:
  1. CType(usrControl,usrControlType).Property = Value

Problem is, in the bit of code I need to do this, I do not know what type of control I am accessing.

Is there I way I can get the type for use with CType? I've tried a couple of ideas but no success yet.

thanks