我有一个小问题我收到了一些数据并在文本框中显示它以调用它我使用
if (textBox1.InvokeRequired)
{
// this is worker thread
updatetextBoxDelegate del = new updatetextBoxDelegate(updatetextBox);
textBox1.Invoke(del, new object[] { data });
}
我的数据就像名字:sam 年龄:10
现在我想拆分它并将这些值保存在数组中或显示在单独的文本框中,我使用了替换方法,例如
string str = textBox1.text;
str.Replace("name","");
依此类推,但问题是替换方法不起作用它不能替换任何东西告诉我我做错了什么