[英]C# need to use enter key in multiline texbox to move down one line, not leave the texbox
[英]C# Enter Data Into Texbox
如何使用C#將字符串的內容放入文本框的顯示中?
謝謝。
設置文本屬性。
textBox1.Text = "Hello, world!";
string a = "My Message";
textbox1.Text = a;
Textbox.Text屬性包含Textbox的字符串。
String s = "Hello world";
// To set the text of a textbox
tbString.Text = s;
// To append string to the textbox
tbString.Text += s;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.