I’m a beginner in C# so please be gentle to me .
I’m having a problem trying to display more results in rich text box because it can only display one result at once. But I would like to display the next result when the radio buttons already being resetted and the previous result should also still in the rich text box. Below is my coding:
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";
}
}
If you don’t want to delete the previous content, remove this code:
I think, what you want to achieve is:
This can be done with this code: