用户自定义控件通过Location来加载为什么却加载不出来????
public UserControl1[] userControl = new UserControl1[3];/// <summary>
/// 加载料仓控件
/// </summary>
private void LoadLC()
{
#region 绘制料仓在界面上显示
// user.Location = new System.Drawing.Point(215, 214);
////user.Location = new System.Drawing.Point(215, 214);
//user.Visible = true;
//user.WriteValue = 300;
for (int i = 0; i <=userControl.Length-1; i++)
{
userControl[i] = new UserControl1();
userControl[i].Visible = true;
userControl[i].Location = new Point(i*100+15, 214);
userControl[i].WriteLabel = Convert.ToString(i + 1) + "#仓";
userControl[i].WriteValue = 300;
}
#endregion
} 界面加载 --------------------编程问答-------------------- this.Controls.Add(userControl[i]);//要把这些new的控件,加到容器中去
补充:.NET技术 , 组件/控件开发