[Mono-bugs] [Bug 78865][Nor] New - CreateParams gets called multiple times for a Control or Form

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jul 15 06:22:38 EDT 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 alex.olk at googlemail.com.

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

--- shadow/78865	2006-07-15 06:22:38.000000000 -0400
+++ shadow/78865.tmp.19743	2006-07-15 06:22:38.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 78865
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: alex.olk at googlemail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CreateParams gets called multiple times for a Control or Form
+
+Instead of calling CreateParams once, it gets called multiple times for a
+Control or Form.
+
+This is problematic because if you want to change for example some Form
+properties like MaximizeBox = false it doesn't have any effect because
+CreateParams is called after that again and overwrites the changes.
+
+Attached is a simple test app (a form only with CWL("here I change some
+Form propertys like MaximizeBox = false or whatever") in the ctor).
+
+Add Console.WriteLine("CreateParams"); to Form.CreateParams and run the app.
+
+The output on my box is:
+
+alex at dellkiste:~/develop/winforms/filedialog$ mono form.exe
+CreateParams
+Mono System.Windows.Forms Assembly [$auto_build_revision$]
+Gtk colorscheme read
+CreateParams
+CreateParams
+here I change some Form propertys like MaximizeBox = false or whatever
+CreateParams
+CreateParams
+CreateParams


More information about the mono-bugs mailing list