[Mono-bugs] [Bug 399927] New: TabControl.Remove fails to refresh control, and can cause invalid ArgumentOutOfRangeException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jun 13 01:36:39 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=399927
Summary: TabControl.Remove fails to refresh control, and can
cause invalid ArgumentOutOfRangeException
Product: Mono: Class Libraries
Version: 1.9.0
Platform: i686
OS/Version: RHEL 4
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: John.PETERSEN at ingenico.com
QAContact: mono-bugs at lists.ximian.com
Found By: Other
Description of Problem:
Removing all the tab pages from a tab control does not refresh the control
appearance. Removing a tab page from a control that does not currently have
any tab pages causes an System.ArgumentOutOfRangeException (-2)
Steps to reproduce the problem:
1. Start with a form and tab control with 2 tab Pages, and a button
2. Add on-button-click code to remove the 2 tab pages using
tabControlN.Remove(tagPageN)
3. 1st button click: tabs are removed, but tab Control is not refreshed.
4. 2nd button click: System.ArgumentOutOfRangeException occurs
Actual Results:
3. 1st button click: tab control is not refreshed, still displays 2 tab pages.
4. 2nd button click: System.ArgumentOutOfRangeException occurs
Expected Results:
3. 1st button click: tab control should be displayed empty, with no tab pages.
4. 2nd button click: tab control should be displayed empty, with no tab pages.
How often does this happen?
Consistent.
Additional Information:
--
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