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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs