Previous | Index | Next 

[PRB] Setting the current tab in a SSTab control brings the input focus to the control

The SSTab control lets you change the current tab by assigning the Tab property, as in:

        SSTab1.Tab = 1

Under .NET this statement automatically brings the input focus to the SSTab control, which in some cases it might be undesirable.

A simple workaround for this behavior is to temporarily disable the control just before assigning the property, and re-enable it immediately afterwards.

 

Previous | Index | Next