[Mono-bugs] [Bug 396232] New: SplitContainer.Panel with a picturebox inside, infinite loop !

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 1 14:14:49 EDT 2008


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


           Summary: SplitContainer.Panel with a picturebox inside,infinite
                    loop !
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: surfzoid2002 at yahoo.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: DeveloperNet


Hi 
I use a SplitContainer.Panel with a picturebox inside, i use the paint_event of
picturebox to draw some string in it, and after this i say :
this.splitContainer1.SplitterDistance = (i).ToString().Length;
To adjust the picturebox to the content i just drawed, but this line of code
make a infinite loop because redim start the paint event .
Test case of this can be found here :
http://monoport.com/14926

if yu start it yu will see a infinit loop who paermatly redraw the form,
without the "bad line" draw of the form is okay but the draw of string had
trouble to refresh when adding text in the rtf box or rezise the form


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