Custom Control property problem - Mehrdad

06-Jun-08 02:39:06
When I put any component on a form, all of the initial values of the
components properties are collected in a auto created private method named
InitializeComponent. like this:
----------------------------------------------
this.button1.Location = new System.Drawing.Point(66, 279);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 1;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
-------------------------------------------------------------------
When I put my own control, all of its properties are added into the
InitializeComponent methode except the GraphInfo class which I defined it as
a property using the below code:
-------------------------------
[Category("Graph")]
[Browsable(true)]
public List<GraphInfo> Graphs
{
get { return this.graphs; }
}
-------------------------------
The class consists of a number of integer values.
Any idea?

Thanks in advance,
Mehrdad
reply
Custom Control property problem - Mehrdad 06-Jun-08
        Re: Custom Control property problem - Peter Duniho 06-Jun-08
                Re: Custom Control property problem - Mehrdad 06-Jun-08
                        Re: Custom Control property problem - Peter Duniho 06-Jun-08
                                Re: Custom Control property problem - Mehrdad 06-Jun-08
                                        Re: Custom Control property problem - Peter Duniho 06-Jun-08
        Re: Custom Control property problem - parez 08-Jun-08
                Re: Custom Control property problem - Mehrdad 06-Jun-08

How to send log message from a Windows (NT) service to a WinForms application using WCF?
  

Search

search




Purchase