[Mono-bugs] [Bug 412728] New: ListBox doesn' t update vscrollbar correctly when setting TopIndex
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 28 15:08:18 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=412728
Summary: ListBox doesn't update vscrollbar correctly when setting
TopIndex
Product: Mono: Class Libraries
Version: SVN
Platform: i586
OS/Version: openSUSE 11.0
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: mcarrion at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: Beta-Customer
Using the following code:
--- START ----
using System;
using System.Drawing;
using System.Windows.Forms;
class ListBoxBug : Form {
public ListBoxBug () {
ListBox list = new ListBox ();
string []range = { "A", "B", "C", "D", "E", "F", "G","H", "I",
"J", "K", "L", "M" };
list.Items.AddRange (range);
list.Size = new Size (100, 100);
list.Location = new Point (1, 1);
Button button = new Button ();
button.Text = "click me";
button.Click += delegate (object sender, EventArgs args) {
list.TopIndex = 10;
};
button.Size = new Size (100, 25);
button.Location = new Point (110, 1);
Controls.Add (list);
Controls.Add (button);
Size = new Size (250, 200);
}
public static void Main (string []args) {
Application.Run (new ListBoxBug ());
}
}
---- END ---
Clicking "click me" button will change TopIndex and the VScrollbar will be
moved, however isn't updated correctly, see attached image for more
information.
This seems to affect ListControl-based controls, such as ListBox and
CheckedListBox.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list