首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

用户控件 System.Windows.Forms.PictureBox 未标记为可序列化,该如何处理

2013-09-05 
用户控件 System.Windows.Forms.PictureBox 未标记为可序列化public partial class UCDemo : UserControl{

用户控件 System.Windows.Forms.PictureBox 未标记为可序列化

public partial class UCDemo : UserControl
{
    /// <summary>
    /// 显示图片
    /// </summary>
    public PictureBox _Pic { get; set; }
    /// <summary>
    /// 提示信息
    /// </summary>
    public Label _Lable { get; set; }
    //.....
}

我写的一个用户控件里包含几个winform控件,当使用这个用户控件时报错:
System.Windows.Forms.PictureBox 未标记为可序列化 用户控件 C#
[解决办法]
调用方代码呢

热点排行