Displaying the Input Panel
[PenInputPanel has been replaced by TextInputPanel (Microsoft.Ink.TextInput for managed code). Please refer to the Programming the Text Input Panel.]
The order of the various focus events for a control is as follows:
There is no guarantee that the control actually has focus by the time the Control.Visible property is written when it is set in the Control.Enter event handler. The Control.Enter event is the best place to attach the PenInputPanel object to a control, but the Control.GotFocus event is the best place to change the PenInputPanel.Visible property.