Control for entering mobile phone number

Posted by: a.koneva on 5 May 2022, 9:30 am EST

  • Posted 5 May 2022, 9:30 am EST

    Hi
    I would like to create a control (or a group of controls) for entering mobile phone number for __all__ countries. I tried to search by google but did not sucess. Maybe somebody saw or wrote such a cotrol and you could share it? It maybe on WinForms.
    Now I try to make it by myself - creating combobox for selecting country and a mask for number for each country, but It seems to me not that simple. Maybe there is someting ready for using?
    Best regards.
    Anna.
  • Replied 5 May 2022, 7:40 pm EST

    Hi Anna,

    To take input of mobile phone numbers, you can easily create a User Control in which you can use a C1ComboBox to show the Country codes, and whenever a Country code is selected, apply the appropriate mask to the C1TextBox. Kindly refer to the attached sample showing a simple implementation of the same.

    Kind Regards,
    Kartik

    MobileInput_C1Input.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels