richtextbox控件的使用

 在开发过程中,少不了系统的介绍模块!!在这个模块中,想用一个控件很好表现出介绍的内容,觉得richtextbox不错!!!

代码如下:

  DataSet ds = st.SearchCaseIntroduction();
            List<String> list = new List<string>();
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                list.Add(row[0].ToString());
            }
            richTextBox1.Lines = list.ToArray();

效果如下:

原文地址:https://www.cnblogs.com/zhang123/p/2813848.html