在.net c#windows窗体中验证印度电话号码。 [英] Validating Indian Phone Number in .net c# windows form.

查看:98
本文介绍了在.net c#windows窗体中验证印度电话号码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发.net c#中的Windows窗体应用程序,如果用户在文本框中输入,我想知道如何验证印度电话号码。

解决方案

1)首先从工具箱中的验证控件创建范围验证器。



2)之后哪个文本框需要phoneno,文本框右键单击并转到属性看a)最小值修复= 0,最大值= 9,错误消息=输入正确格式化并控制到文本框ID的验证器。那解决


我认为它可以帮到你......



在Windows窗体中验证用户输入 [ ^ ]


使用正则表达式蒙面文本框



你也应该相信你的谷歌搜索技巧。

I am developing a windows form application in .net c#, All I want to know is how to validate the Indian phone number, if a user inputs in a textbox.

解决方案

1) first you create range validator from validation control in toolbox.

2) After that which textbox in need phoneno that textbox rightclick and goto properties see a)min value fix=0, max value=9, Error msg=Enter correct format and control to validator that textbox id. That solve


I think it may help you....

Validate user input in Windows Forms[^]


Use either Regular Expressions or masked textBox.

You should trust your googling skills as well.


这篇关于在.net c#windows窗体中验证印度电话号码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆