[英]c# WinForm, I cant manage to get the info typed in my text boxes to be added to the list box
[英]how to get the list of all my labels text in winform C#
我有C#WinForm程序。
如何獲取我所有標簽文本的列表?
我需要翻譯成另一種語言。
更多說明:
我有很多帶有很多標簽和文本框的表格。
我不想一個接一個地改變。
這就是為什么我想得到所有東西的清單
謝謝
試試下面的代碼
foreach (Control control in this.Controls)
{
if (control is Label)
{
textBox1.AppendText(control.Text);
//your code here to change the language
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.