日期:2014-05-17  浏览次数:20812 次

WinHtmlControl.dll在窗体load中赋值失败
想在打开窗体的时候给winhtmlcontrol赋值,我写到 窗体load,actived,窗体初始化的函数中,都不能赋值,但如果赋值语句放到窗体上的某个按钮的单击事件上就可以成功.有人知道什么原因吗
  public void chushct(string mx)
  {
  this.Tbbseditor.BodyText = mx;
  this.Tbbseditor.BodyHtml = mx;
   
  }
  private void bbstitlereply_Load(object sender, EventArgs e)
  {
  chushct("woainload");
  }
  private void bbstitlereply_Activated(object sender, EventArgs e)
  {
  this.Tbbseditor.BodyText = "actived";
  }
public bbstitlereply(string Tbbstitle,string Tbbsid,string editormx)
  {
   
  chushct(editormx);
  }

------解决方案--------------------
才20分