[Mono-bugs] [Bug 79778][Nor] New - TabPage gets set to visible even if TabControl is not visible

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 29 13:30:04 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 monkey at jpobst.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79778

--- shadow/79778	2006-10-29 13:30:04.000000000 -0500
+++ shadow/79778.tmp.18070	2006-10-29 13:30:04.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 79778
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: monkey at jpobst.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TabPage gets set to visible even if TabControl is not visible
+
+Description of Problem:
+If a TabPage is added to a TabControl that has not been added to a form
+yet, the TabPage is set to visible which creates its own top-level window.
+ Probably only occurs on Windows.
+
+Steps to reproduce the problem:
+1. Run attached program.
+
+Actual Results:
+An empty form is displayed, as well as an empty TabPage as a top-level
+window.  See screenshot.
+
+Expected Results:
+Just the form should be visible.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+The offending line is 258 in TabControl.cs:
+selected.SetVisible (true);
+
+The stacktrace of how we got there is:
+at System.Windows.Forms.TabControl.set_SelectedIndex(Int32 value) in
+TabControl.cs:line 258
+at System.Windows.Forms.TabControl.ControlCollection.Add(Control value) in
+TabControl.cs:line 1080
+at MonoTest.MonoTest.myForm..ctor() in testcase13.cs:line 21
+at MonoCHelloWorld.Program.Main() in Program.cs:line 30


More information about the mono-bugs mailing list