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();

 

效果如下:

 

 

posted @ 2012-12-11 22:56  才高远志  阅读(201)  评论(0编辑  收藏  举报