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

    1. <small id='VB1zC'></small><noframes id='VB1zC'>

    2. <tfoot id='VB1zC'></tfoot>
        <bdo id='VB1zC'></bdo><ul id='VB1zC'></ul>
      <legend id='VB1zC'><style id='VB1zC'><dir id='VB1zC'><q id='VB1zC'></q></dir></style></legend>

      如何将 WinForms 文本框设置为覆盖模式

      时间:2023-06-09
      1. <i id='kit5Z'><tr id='kit5Z'><dt id='kit5Z'><q id='kit5Z'><span id='kit5Z'><b id='kit5Z'><form id='kit5Z'><ins id='kit5Z'></ins><ul id='kit5Z'></ul><sub id='kit5Z'></sub></form><legend id='kit5Z'></legend><bdo id='kit5Z'><pre id='kit5Z'><center id='kit5Z'></center></pre></bdo></b><th id='kit5Z'></th></span></q></dt></tr></i><div id='kit5Z'><tfoot id='kit5Z'></tfoot><dl id='kit5Z'><fieldset id='kit5Z'></fieldset></dl></div>
        <tfoot id='kit5Z'></tfoot>

              <bdo id='kit5Z'></bdo><ul id='kit5Z'></ul>
              <legend id='kit5Z'><style id='kit5Z'><dir id='kit5Z'><q id='kit5Z'></q></dir></style></legend>

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

                  <tbody id='kit5Z'></tbody>

                本文介绍了如何将 WinForms 文本框设置为覆盖模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                是否可以强制 Windows 窗体应用程序中的文本框在覆盖模式"下工作,即在用户键入而不是添加时替换字符?
                否则,有没有标准的方法来获得这种行为?

                Is it possible to force a textbox in a windows forms application to work in "overwrite mode", i.e. have characters replaced when the user types instead of added?
                Otherwise, is there a standard way to get this behavior?

                推荐答案

                尝试使用 MaskedTextBox 并将 InsertKeyMode 设置为 InsertKeyMode.Overwrite.

                Try using a MaskedTextBox and set InsertKeyMode to InsertKeyMode.Overwrite.

                MaskedTextBox box = ...;
                box.InsertKeyMode = InsertKeyMode.Overwrite;
                

                这篇关于如何将 WinForms 文本框设置为覆盖模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:文本框文本颜色更改 下一篇:ASP.NET TextBox LostFocus 事件

                相关文章

                  <small id='5YKmE'></small><noframes id='5YKmE'>

                  • <bdo id='5YKmE'></bdo><ul id='5YKmE'></ul>

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

                    <tfoot id='5YKmE'></tfoot>
                    <legend id='5YKmE'><style id='5YKmE'><dir id='5YKmE'><q id='5YKmE'></q></dir></style></legend>