子控件:
public partial class UserControl1 : UserControl
//load方法
private void UserControl1_Load(object sender, EventArgs e)
{
projectName = Application.ProductName.ToString();
projectName = @"C:\Documents and Settings\Administrator\桌面\dufei\阿瓦提client\";
string content = getMD5FileContent(@"/MD5.txt"); Hashtable SerMD5Map = StringToHashtable(content); //重新计算本项目的MD5.TXT
new computProject.Class1().create(projectName); Hashtable localMD5Map = getMap(projectName + @"\MD5.txt"); updateFileList = getUpdateFileList(SerMD5Map, localMD5Map);
this.timer1.Enabled = true;
if (updateFileList.Count == 0)
{
this.timer1.Enabled = false;
this.timer1.Dispose();
this.Dispose();
}
}里面一个timer 一个 progressbar
把此控件的dll放入windows 窗体应用程序中,然后在从具箱中拖此控件到form上就报:“child”不是此父级的子控件
刚学 不知是不是操作部规范还是什么原因。请指教,谢谢。
public partial class UserControl1 : UserControl
//load方法
private void UserControl1_Load(object sender, EventArgs e)
{
projectName = Application.ProductName.ToString();
projectName = @"C:\Documents and Settings\Administrator\桌面\dufei\阿瓦提client\";
string content = getMD5FileContent(@"/MD5.txt"); Hashtable SerMD5Map = StringToHashtable(content); //重新计算本项目的MD5.TXT
new computProject.Class1().create(projectName); Hashtable localMD5Map = getMap(projectName + @"\MD5.txt"); updateFileList = getUpdateFileList(SerMD5Map, localMD5Map);
this.timer1.Enabled = true;
if (updateFileList.Count == 0)
{
this.timer1.Enabled = false;
this.timer1.Dispose();
this.Dispose();
}
}里面一个timer 一个 progressbar
把此控件的dll放入windows 窗体应用程序中,然后在从具箱中拖此控件到form上就报:“child”不是此父级的子控件
刚学 不知是不是操作部规范还是什么原因。请指教,谢谢。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货