Bug 3124 - TabControl draws on all tabs
Summary: TabControl draws on all tabs
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 2.10.x
Hardware: Other All
: Lowest normal
Target Milestone: Community
Assignee: Bugzilla
Depends on:
Reported: 2012-01-28 05:23 UTC by sectroyer
Modified: 2017-09-01 11:56 UTC (History)
4 users (show)

Tags: mono-community
Is this bug a regression?: ---
Last known good build:

Sample code that illustrates the problem (103.39 KB, application/x-zip-compressed)
2012-01-28 05:23 UTC, sectroyer
problem sample (25.15 KB, application/x-zip-compressed)
2012-07-18 05:55 UTC, michael

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 3124 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description sectroyer 2012-01-28 05:23:09 UTC
Created attachment 1285 [details]
Sample code that illustrates the problem

Description of Problem:
When a timer draws something in the "background tab" it becomes visible on all tabs.

Steps to reproduce the problem:
1. Open Sample app. It adds a new line of text every second to a textbox on a "Logi" tab.
2. Switch to "Logi" tab.
3. Switch to any other tab. The text will be rendered every second on every tab.

Actual Results:
Inability to use TabControl

Expected Results:
Working TabControl

How often does this happen? 

Additional Information:
Selection of "Logi" tab is essential. Without it everything works as expected.
Comment 1 michael 2012-07-16 08:50:52 UTC
this occur on any control that has multiple levels. and only happens on Mac
Comment 2 michael 2012-07-18 05:55:07 UTC
Created attachment 2215 [details]
problem sample

another sample with the problem
Comment 3 michael 2012-07-18 05:55:32 UTC
problem does not occur with
export MONO_MWF_MAC_FORCE_X11=1.
Comment 5 IJsbrand Oudshoorn 2013-10-23 04:55:37 UTC
This might be related with the Paint event being triggered for controls that are on hidden panels. See bug #15539. Most tabs are implemented with showing/hiding panels for each tab.