dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]ListBox bug


From: Simon Guindon
Subject: [DotGNU]ListBox bug
Date: Tue, 14 Oct 2003 19:12:16 -0400

I'm encountering a bug in ListBox thats affecting my ComboBox, its on line 1510 of ListBox.cs
the line is:
 

this.horizScrollbar.LargeChange = listArea.Width;

Uncaught exception: System.ArgumentOutOfRangeException: Argument is out of range
        at System.Windows.Forms.ScrollBar.set_LargeChange(Int32) in ./ScrollBar.cs:184
        at System.Windows.Forms.ListBox.RedrawList(Graphics) in ./ListBox.cs:1510
        at System.Windows.Forms.ListBox.RedrawList() in ./ListBox.cs:1474
        at System.Windows.Forms.ObjectCollection.AddRange(Object[]) in ./ListBox.cs:212
        at Test.Form1.InitializeComponent()
        at Test.Form1..ctor()
        at Test.Form1.Main()

I commented this line out and I get no error.  This error occurs as soon as you add items to the ListBox and it tries to paint them.

Thanks,

Simon


reply via email to

[Prev in Thread] Current Thread [Next in Thread]