Jump to content
Sign in to follow this  

Phone number inputbox

Recommended Posts


Is there a style control to limit the amount of numbers someone can input into an inputbox? I have the $ES_NUMBER style for just making sure they only input numbers, but what about the amount of numbers? I have 2 phone fields and right now I can only limit the amount by adjusting the size of the inputbox, but the problem with that is the boxes are really small.

GUICtrlCreateLabel ("Phone",  10, 93)
$tempphonethree = GuiCtrlCreateInput("", 65, 90, 25, 20,$ES_NUMBER)
GUICtrlCreateLabel ("-",  95, 93)
$tempphonefour = GuiCtrlCreateInput("", 103, 90, 30, 20,$ES_NUMBER)


Share this post

Link to post
Share on other sites

GUICtrlSetLimit ()



nothing is foolproof to the sufficiently talented fool..

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.