everyone i am facing a problem. i am on initial stage. please ignore if stupid question. i use "InputPrompt" control (from coding for fun toolkit) to getting the value in the form of phone number. when i try to enter the number in the form of i.e 123-345-6789 the cursor position changed and go back to the previous value. the code is :
// the event
input.TextInputStart += new TextCompositionEventHandler(input_TextInputStart);
// event handler
void input_TextInputStart(object sender, TextCompositionEventArgs e)
{
if(input.value.lenght == 2)
{
input.value += '-';
}
if(input.value.lenght == 5)
{
input.value += '-';
}
if(input.value.lenght == 9)
{
input.value += '-';
}
}