[Mono-bugs] [Bug 441896] New: TabControl SelectedIndexChanged Event Causes crash when the last tab is removed
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Nov 5 11:11:21 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=441896
Summary: TabControl SelectedIndexChanged Event Causes crash when
the last tab is removed
Product: Mono: Runtime
Version: 2.0
Platform: i586
OS/Version: Ubuntu
Status: NEW
Severity: Critical
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: alisdair_little at yahoo.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
The SelectedIndexChanged event for a TabControl causes an "Object reference not
set to an instance of an object".
This bug is not present under Windows XP mono 2.0.
To reproduce;
Place a tab control onto a form and attach an event handler to the
SelectedIndexChanged event.
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) {
if (tabControl1.TabCount > 0) {
this.Text = tabControl1.SelectedTab.Text;
}
}
I have also tried checking the TabPages.Count property but this produces the
same error.
--
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