No I dont think in a direct way it should be possible but you can try out the following. It may work.

Try getting the handle to the input box and get the child controls and if you have the textbox try setting its property for masking.