我是C#的初學者,所以請對我溫柔。如何在RichTextBox上顯示更多結果?
我在試圖在富文本框中顯示更多結果時遇到問題,因爲它只能一次顯示一個結果。但是我想在單選按鈕已經被重置並且之前的結果仍然應該在富文本框中時顯示下一個結果。下面是我的編碼:
for(int i=0,i<30;i++)
{
if(symptom1.Checked && symptom2.Checked)
{
Result.Text="";
Result.Text += "Your Disease is: "+"Meningiomas";
}
if(symptom7.Checked && symptom8.Checked)
{
Result.Text="";
Result.Text += "Your Disease is: "+"Pituitary Tumor";
}
}
你爲什麼要設置** Result.Text =「」; **。這將刪除以前的數據,刪除它,你應該罰款 – V4Vendetta 2011-05-02 09:08:09