How can I detect when the user opens/closes the keyboard so that I can
adjust sizes?

Using C#.

Thanks
Manfred