Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=80128 --- shadow/80128 2006-12-02 12:02:47.000000000 -0500 +++ shadow/80128.tmp.12459 2006-12-02 12:02:47.000000000 -0500 @@ -0,0 +1,53 @@ +Bug#: 80128 +Product: Mono: Class Libraries +Version: 1.0 +OS: other +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: TabControl selected tab does not match Microsoft implementation + +Description of Problem: +TabControl selected tab does not match Microsoft implementation + +Steps to reproduce the problem: +Compile and run the following program. +using System; +using System.Windows.Forms; +class TestForm : Form { + static void Main() { + Application.Run(new TestForm()); + } + public TestForm() { + TabControl MyTabControl = new TabControl(); + Controls.Add(MyTabControl); + TabPage MyTabPage = new TabPage(); + MyTabControl.TabPages.Add(MyTabPage); + MessageBox.Show((MyTabControl.SelectedTab == +MyTabPage).ToString()); + } +} +Actual Results: +True + +Expected Results: +False + +How often does this happen? +Always. + +Additional Information: +TabControl.ControlCollection.Add seems to cause this. +... +if (Count == 1) { + owner.SelectedIndex = 0; +... _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
