<tfoot id='OAnxI'></tfoot>

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

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

        <small id='OAnxI'></small><noframes id='OAnxI'>

      2. 文本框被一个巨大的字符串禁用

        时间:2023-06-09

            <tbody id='bVNy7'></tbody>

            <small id='bVNy7'></small><noframes id='bVNy7'>

            <i id='bVNy7'><tr id='bVNy7'><dt id='bVNy7'><q id='bVNy7'><span id='bVNy7'><b id='bVNy7'><form id='bVNy7'><ins id='bVNy7'></ins><ul id='bVNy7'></ul><sub id='bVNy7'></sub></form><legend id='bVNy7'></legend><bdo id='bVNy7'><pre id='bVNy7'><center id='bVNy7'></center></pre></bdo></b><th id='bVNy7'></th></span></q></dt></tr></i><div id='bVNy7'><tfoot id='bVNy7'></tfoot><dl id='bVNy7'><fieldset id='bVNy7'></fieldset></dl></div>
            <tfoot id='bVNy7'></tfoot>

            <legend id='bVNy7'><style id='bVNy7'><dir id='bVNy7'><q id='bVNy7'></q></dir></style></legend>

              <bdo id='bVNy7'></bdo><ul id='bVNy7'></ul>
                  本文介绍了文本框被一个巨大的字符串禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  textbox 在输入大字符串时遇到问题.

                  I'm having a issue with a textbox when it's typed a huge string.

                  在我的例子中,文本框用于编写电子邮件地址,并且没有字符限制.所以,我做了这个测试:我在记事本中写了 200 个电子邮件地址,然后我将文本粘贴到 textbox 上,文本消失了,但是如果我改变控件的焦点,文本再次显示.我已经看到了这个 链接,但它没有帮助我.我已经尝试将 MaxLength 属性更改为 0 (微软说怎么做),但在这里也不起作用.

                  In my case, the textbox is used to write email addresses, and it doesn't have a limit of chars. So, I've made this test: I wrote 200 email addresses in a notepad, and I pasted the text on the textbox and the text disappeared, but if I change the focus of the control, the text is displayed again. I already saw this link, but it doesn't helped me. I already tried to change the MaxLength property to 0 (how the microsoft says to do), but it doesn't worked here too.

                  考虑到一个包含 50 个字符的电子邮件地址,MaxLength 属性不会有问题,因为 200 个电子邮件地址乘以 50 个字符(每封电子邮件),我将有 10000 个字符,并且 TextBox 的默认值.MaxLength 为 32767.

                  Considering a email address with 50 chars, the MaxLength property wouldn't be a problem, because 200 email addresses multiplying with 50 chars (each email), I'll have 10000 chars, and the default value of TextBox.MaxLength is 32767.

                  而且,在你询问代码之前,我只将文本设置为字符串.

                  And, before you ask for the code, I only set the text to a string.

                  myEmailObject.Address = txtEmail.Text;

                  我应该使用 RichText 还是什么?

                  Should I use RichText, or what?

                  推荐答案

                  尝试将 Multiline 属性设置为 True 并增加文本框的高度

                  Try to set the Multiline property to True and increase the height of the textbox

                  这篇关于文本框被一个巨大的字符串禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在文本框中单击即可选择点击的单词 下一篇:字母数字文本框 - 粘贴前验证/清理剪贴板文本

                  相关文章

                  <legend id='iQhON'><style id='iQhON'><dir id='iQhON'><q id='iQhON'></q></dir></style></legend>

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

                    <small id='iQhON'></small><noframes id='iQhON'>

                      • <bdo id='iQhON'></bdo><ul id='iQhON'></ul>
                      <tfoot id='iQhON'></tfoot>