I'm trying to create a WM6 version of my VB.NET application created in Visual Studio 2005. In several instances I have this, for example: If Me.ActiveControl Is xxx Then, which obviously checks if the particular element has got focus. But with WM SDK this doesn't seem to work, how should I do it? Thanks