Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm creating a country code finder i have a masked text box to enter the phone numbers and want to extract the code number from it and find the country belongs to that code number oi need your help to extract the code and find the code from my database
Posted
Comments
DamithSL 4-Jun-15 1:35am    
what have you tried so far? where you have issues? explain with code samples. you can update the question by click on improve question link.

1 solution

Let mskTexte your maskedTextBox and (99) 000-0000 be your mask for mobile number. then you can extract the country code by using the following code
VB
Dim countryCode As String = mskText.Text.Substring(1, 2)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900