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

      <bdo id='AMpgH'></bdo><ul id='AMpgH'></ul>
  1. <tfoot id='AMpgH'></tfoot>

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

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

      仅用于用户输入的 TextBox 事件

      TextBox event for only user input(仅用于用户输入的 TextBox 事件)
        <tfoot id='Djrsw'></tfoot>

            <tbody id='Djrsw'></tbody>

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

          • <i id='Djrsw'><tr id='Djrsw'><dt id='Djrsw'><q id='Djrsw'><span id='Djrsw'><b id='Djrsw'><form id='Djrsw'><ins id='Djrsw'></ins><ul id='Djrsw'></ul><sub id='Djrsw'></sub></form><legend id='Djrsw'></legend><bdo id='Djrsw'><pre id='Djrsw'><center id='Djrsw'></center></pre></bdo></b><th id='Djrsw'></th></span></q></dt></tr></i><div id='Djrsw'><tfoot id='Djrsw'></tfoot><dl id='Djrsw'><fieldset id='Djrsw'></fieldset></dl></div>
          • <legend id='Djrsw'><style id='Djrsw'><dir id='Djrsw'><q id='Djrsw'></q></dir></style></legend>
                <bdo id='Djrsw'></bdo><ul id='Djrsw'></ul>
                本文介绍了仅用于用户输入的 TextBox 事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个文本框控件,它有时以编程方式更新,也可以由用户更新.我如何区分这两个事件?我想要一个Dirty"标志设置为真";当用户更改文本时.

                I have a Textbox control which sometimes updated programmatically and also can be update by the user. How can I distinct between those two event? I'd like to have a "Dirty" flag set to "True" when the user changes the text.

                推荐答案

                可以使用文本框的Key Down事件.

                You can use the Key Down event of the text box.

                  private void textBox1_KeyDown(object sender, KeyEventArgs e)
                  {
                      // Insert the code you want to run when the text changes here!
                  }
                

                这篇关于仅用于用户输入的 TextBox 事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 密码框中的特定索引)
                C# Numeric Only TextBox Control(C# 纯数字文本框控件)

                  1. <small id='3aiUP'></small><noframes id='3aiUP'>

                    <tfoot id='3aiUP'></tfoot>

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