如何更新TextBox
控件的文本?textbox在vb.net或c中插入和刪除函數#
考慮到已經包含字符串 「WEL」
要在TextBox
插入文本TextBox
,我使用:
TextBox1.Text = TextBox1.Text.Insert(3, "come")
,並從TextBox
刪除字符:
TextBox1.Text = TextBox1.Text.Remove(3, 4)
但我需要能夠做到這一點:
TextBox1.Text.Insert(3, "come");
TextBox1.Text.Remove(3, 4);
但是,此代碼不會更新TextBox
。
這可能嗎?
這可以通過append方法來完成嗎?
請詳細說明您的問題。 – 2011-05-25 18:55:57
單擊鏈接以獲取詳細信息http://stackoverflow.com/questions/6115199/textbox-keypress-event-using-vb-net-or-c – Balachandran 2011-05-25 19:12:00