G
Guest
i'm developing an usercontrol that should have a property that must be an array of a struct
so i wrote this struct
public struct DatiCamp
[Category("Dati")
private string _nome
public string Nom
get{return(this._nome);
set{this._nome = value;
private string _intestazione
public string Intestazion
get{return(this._intestazione);
set{this._intestazione = value;
private int _larghezza
public int Larghezz
get{return(this._larghezza);
set{this._larghezza = value;
[Category("Componente")
private string _name
public string Nam
get{return(this._name);
set{this._name = value;
then i defined my propert
private DatiCampo[] _campi
public DatiCampo[] DBCamp
get{return(this._campi);
set{this._campi=value;
but when i use it in VS.NET 2003 at design time, i can set some values from properties page, but after i click OK an
reopen this property the values was lost;
i try to "mark" my prop wit
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
but VS.NET always lost my values! why? am i doing some mistakes
thanks a lot
so i wrote this struct
public struct DatiCamp
[Category("Dati")
private string _nome
public string Nom
get{return(this._nome);
set{this._nome = value;
private string _intestazione
public string Intestazion
get{return(this._intestazione);
set{this._intestazione = value;
private int _larghezza
public int Larghezz
get{return(this._larghezza);
set{this._larghezza = value;
[Category("Componente")
private string _name
public string Nam
get{return(this._name);
set{this._name = value;
then i defined my propert
private DatiCampo[] _campi
public DatiCampo[] DBCamp
get{return(this._campi);
set{this._campi=value;
but when i use it in VS.NET 2003 at design time, i can set some values from properties page, but after i click OK an
reopen this property the values was lost;
i try to "mark" my prop wit
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
but VS.NET always lost my values! why? am i doing some mistakes
thanks a lot