public MultiColumnListBox() { InitializeComponent(); //Set Field Default Values matchBuffer = ""; matchBufferTimeOut = 1000; matchEntryStyle = MatchEntryStyle.FirstLetterInsensitive; textIndex = -1; timer = new System.Timers.Timer(); valueIndex = -1; //Base class Draw mode must always be OwnerDrawn in order for OnDrawItem to Fire base.DrawMode = DrawMode.OwnerDrawFixed; //Probably shouldn't call this a collection because it realy isn't... columnWidths = new ColumnWidthCollection(this); timer.AutoReset = false; timer.Interval = matchBufferTimeOut; timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); }
//Constructor public MultiColumnListBox() : base() { //Set Field Default Values matchBuffer = ""; matchBufferTimeOut = 1000; matchEntryStyle = MatchEntryStyle.FirstLetterInsensitive; textIndex = -1; timer = new System.Timers.Timer(); valueIndex= -1; //Base class Draw mode must always be OwnerDrawn in order for OnDrawItem to Fire base.DrawMode = DrawMode.OwnerDrawFixed; //Probably shouldn't call this a collection because it realy isn't... columnWidths = new ColumnWidthCollection(this); timer.AutoReset = false; timer.Interval = matchBufferTimeOut; timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); }