[Mono-bugs] [Bug 80128][Wis] New - TabControl selected tab does not match Microsoft implementation

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Dec 2 12:02:47 EST 2006


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 georgegiolfan at yahoo.com.

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: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+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;
+...


More information about the mono-bugs mailing list