protected CustomList(string name) { this.name=name; SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.DoubleBuffer|ControlStyles.UserPaint,true); collection = new ArrayList(); vert = new VScrollBar(); vert.Height=Height; vert.Location=new Point(Width-vert.Width,0); vert.Minimum=0; vert.Maximum=1; vert.Scroll+=new ScrollEventHandler(scroll); Controls.Add(vert); strList = new string[]{"Edit","Delete"}; border = Border3DStyle.Etched; bStyle=BorderStyle.None; properties = new StrPropertyList(); StrProperty.Update+=new NoArgsDelegate(Refresh); }
protected CustomList(string name) { this.name = name; SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true); collection = new ArrayList(); vert = new VScrollBar(); vert.Height = Height; vert.Location = new Point(Width - vert.Width, 0); vert.Minimum = 0; vert.Maximum = 1; vert.Scroll += new ScrollEventHandler(scroll); Controls.Add(vert); strList = new string[] { "Edit", "Delete" }; border = Border3DStyle.Etched; bStyle = BorderStyle.None; properties = new StrPropertyList(); StrProperty.Update += new NoArgsDelegate(Refresh); }