Is this what you are looking for ?
Inspired by the code from your link and using the Door library.
Unfortunately it works only on the desktop because SelectionStart and SelectionLength for a ComboBox are not supportd on the device, it seems also that the KeyUp event is not supportd on the device.
For the device you could mix the code below with the one in the other thread.
Best regards.