VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

IP Address in MS Masked Edit Control

Shauli  (3 Submissions)   Miscellaneous   VB Script   Advanced   Wed 3rd February 2021

Enter IP Address into Microsoft Masked Edit Control, check if entry is valid (0-255) and jump to the next section of the mask using the dot (.) as separator, if the section is shorter than 3 digits (such as : 192.168.24.1).

Assumes
Place a maskedbox (MaskEdBox1) on your form. This code works if the user types the DOT (.) character to move to the next section in the maskbox when entering ip address.

Returns
myIPValue var contains the final ip address. If declared as public it can be used anywhere.

Rate IP Address in MS Masked Edit Control (3(3 Vote))
IP Address in MS Masked Edit Control.bas

IP Address in MS Masked Edit Control Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters