• <i id='WnAuS'><tr id='WnAuS'><dt id='WnAuS'><q id='WnAuS'><span id='WnAuS'><b id='WnAuS'><form id='WnAuS'><ins id='WnAuS'></ins><ul id='WnAuS'></ul><sub id='WnAuS'></sub></form><legend id='WnAuS'></legend><bdo id='WnAuS'><pre id='WnAuS'><center id='WnAuS'></center></pre></bdo></b><th id='WnAuS'></th></span></q></dt></tr></i><div id='WnAuS'><tfoot id='WnAuS'></tfoot><dl id='WnAuS'><fieldset id='WnAuS'></fieldset></dl></div>
      • <bdo id='WnAuS'></bdo><ul id='WnAuS'></ul>
    1. <small id='WnAuS'></small><noframes id='WnAuS'>

      <tfoot id='WnAuS'></tfoot>

        <legend id='WnAuS'><style id='WnAuS'><dir id='WnAuS'><q id='WnAuS'></q></dir></style></legend>
      1. C# 纯数字文本框控件

        C# Numeric Only TextBox Control(C# 纯数字文本框控件)
      2. <legend id='4Y9nT'><style id='4Y9nT'><dir id='4Y9nT'><q id='4Y9nT'></q></dir></style></legend>

        <tfoot id='4Y9nT'></tfoot>
          <bdo id='4Y9nT'></bdo><ul id='4Y9nT'></ul>
            <tbody id='4Y9nT'></tbody>

              <small id='4Y9nT'></small><noframes id='4Y9nT'>

                • <i id='4Y9nT'><tr id='4Y9nT'><dt id='4Y9nT'><q id='4Y9nT'><span id='4Y9nT'><b id='4Y9nT'><form id='4Y9nT'><ins id='4Y9nT'></ins><ul id='4Y9nT'></ul><sub id='4Y9nT'></sub></form><legend id='4Y9nT'></legend><bdo id='4Y9nT'><pre id='4Y9nT'><center id='4Y9nT'></center></pre></bdo></b><th id='4Y9nT'></th></span></q></dt></tr></i><div id='4Y9nT'><tfoot id='4Y9nT'></tfoot><dl id='4Y9nT'><fieldset id='4Y9nT'></fieldset></dl></div>
                  本文介绍了C# 纯数字文本框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用的是 C#.NET 3.5,但我的项目有问题.在 C# Windows 应用程序中,我想让 textbox 只接受数字.如果用户尝试输入字符,消息应该显示为请仅输入数字",并且在另一个文本框中它必须接受有效的 email id 消息,当它无效时应该出现.它必须显示无效的用户 ID.

                  I am using C#.NET 3.5, and I have a problem in my project. In C# Windows Application, I want to make a textbox to accept only numbers. If user try to enter characters message should be appear like "please enter numbers only", and in another textbox it has to accept valid email id message should appear when it is invalid. It has to show invalid user id.

                  推荐答案

                  我建议,你使用 MaskedTextBox:http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx

                  I suggest, you use the MaskedTextBox: http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx

                  这篇关于C# 纯数字文本框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to keep the Text of a Read only TextBox after PostBack()?(PostBack()之后如何保留只读文本框的文本?)
                  Winforms Textbox - Using Ctrl-Backspace to Delete Whole Word(Winforms 文本框 - 使用 Ctrl-Backspace 删除整个单词)
                  C# - Add button click events using code(C# - 使用代码添加按钮单击事件)
                  Multi-color TextBox C#(多色文本框 C#)
                  How can i set the caret position to a specific index in passwordbox in WPF(如何将插入符号位置设置为 WPF 密码框中的特定索引)
                  Unicode characters not showing in System.Windows.Forms.TextBox(System.Windows.Forms.TextBox 中未显示 Unicode 字符)
                  • <small id='ZGFwt'></small><noframes id='ZGFwt'>

                    • <bdo id='ZGFwt'></bdo><ul id='ZGFwt'></ul>

                      <legend id='ZGFwt'><style id='ZGFwt'><dir id='ZGFwt'><q id='ZGFwt'></q></dir></style></legend>
                        <tbody id='ZGFwt'></tbody>
                      1. <i id='ZGFwt'><tr id='ZGFwt'><dt id='ZGFwt'><q id='ZGFwt'><span id='ZGFwt'><b id='ZGFwt'><form id='ZGFwt'><ins id='ZGFwt'></ins><ul id='ZGFwt'></ul><sub id='ZGFwt'></sub></form><legend id='ZGFwt'></legend><bdo id='ZGFwt'><pre id='ZGFwt'><center id='ZGFwt'></center></pre></bdo></b><th id='ZGFwt'></th></span></q></dt></tr></i><div id='ZGFwt'><tfoot id='ZGFwt'></tfoot><dl id='ZGFwt'><fieldset id='ZGFwt'></fieldset></dl></div>

                          1. <tfoot id='ZGFwt'></tfoot>