views:

435

answers:

2

I have a tabcontrol with several tabpages. I also have hooked into the InputPanel.EnabledChanged event so that the tabcontrol resizes when the inputpanel is enabled. What I would like to do is ensure that the control with the focus is visible when the tabpage is resized. What's the best way to accomplish this. Note that I am using the .NET Compact Framework.

Thanks, MrB

A: 

The only way that comes to my mind is calculate this by currrent controls positions on a screen.

Leonid Shirmanov
A: 
Stefan Mohr