I have my comboBox, and the user will write something there.

I use (mycomboBox.text = "01465650912"), to past the text into my combobox.

The problem is that, I want to add a especial character like this:

**[01-4-6565-09-12]**

I want to add a hyphen, after the 2 character, after the third and so on in all the place that i have the hyphen.

My logic is: first I have to read, after that, I have to count how many character is there. next, I have to say something like: if is character 2, catenate with "-" if is character 4 catenate with"-" and so on.

I have restrict the combobox to write only 15 character include hyphen

Could Somenone explain to me how?

Thank you.