我照着Simple例子里的Database 自己建立的 然后函数在Load然后调用 GetRecord(); 但是用断电测试 执行到string sRTFData = dsRTFData.Tables[0].Rows[iCurrentRow].ItemArray[0].ToString();这句之后 不执行textControl1.Load(sRTFData, TXTextControl.StringStreamType.RichTextFormat); 就生成框体了,求问是什么情况
private void Form1_Load(object sender, EventArgs e)
{
//dsRTFData.WriteXmlSchema("rtf sample database.xml");
//dsRTFData.WriteXml("rtf sample database.xml");
dsRTFData.ReadXml("rtf sample database.xml");
GetRecord();
}
private void GetRecord()
{
string s1 = "";
string sRTFData = dsRTFData.Tables[0].Rows[iCurrentRow].ItemArray[0].ToString();
textControl1.Load(sRTFData, TXTextControl.StringStreamType.RichTextFormat);
textControl2.Text = sRTFData;
SetButtonState();
}
|