[Mono-bugs] [Bug 416058] ErrorProvider Icons Drawn Incorrectly When Embedded Within TabControl

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 29 15:44:45 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=416058

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=416058#c4





--- Comment #4 from Andy Hume <andyhume32 at yahoo.co.uk>  2008-08-29 13:44:44 MDT ---
Created an attachment (id=236383)
 --> (https://bugzilla.novell.com/attachment.cgi?id=236383)
Repro -- bug-416058_Test14_ContainerControl.cs

Attached is a modified version of Jonathan's sample that shows the problem. 
The crucial line is "ep.ContainerControl = this;".  With it the icons are
apparently then incorrectly drawn relative to the form and not to each
control's parent (the tabpage).


MSDN says for the ContainerControl property:
  Typically, this is the Form the data-bound controls reside on.

So should it be used *solely* for data-binding purposes
(ContainerControl.BindingContext etc), and be ignored completely for
painting/parenting/etc/etc?

It would explain why we've had problems with NRE bugs related to it! :-'(


-- 
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.


More information about the mono-bugs mailing list