[Mono-bugs] [Bug 77220][Nor] New - RichTextBox.SelectionColor causes exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 11 21:29:00 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 simon at nureality.ca.


--- shadow/77220	2006-01-11 21:29:00.000000000 -0500
+++ shadow/77220.tmp.22025	2006-01-11 21:29:00.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 77220
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: simon at nureality.ca               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: RichTextBox.SelectionColor causes exception
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+RichTextBox.SelectionColor = Color causes an exception. I am executing 
+this without actually selecting any text, as on .NET this means changing 
+the current caret locations font color.
+Steps to reproduce the problem:
+1. Call RichTextBox.SelectionColor = Color;
+Actual Results:
+FIXME - SelectionColor should not alter font
+Unhandled Exception: System.NullReferenceException: Object reference not 
+set to an instance of an object
+in <0x000f5> System.Windows.Forms.LineTag:FormatText 
+(System.Windows.Forms.Line line, Int32 start, Int32 length, 
+System.Drawing.Font font, System.Drawing.Brush color)
+in <0x000d5> System.Windows.Forms.Document:FormatText 
+(System.Windows.Forms.Line start_line, Int32 start_pos, 
+System.Windows.Forms.Line end_line, Int32 end_pos, System.Drawing.Font 
+font, System.Drawing.Brush color)
+in <0x0010d> System.Windows.Forms.RichTextBox:set_SelectionColor (Color 
+in (wrapper remoting-invoke-with-check) 
+System.Windows.Forms.RichTextBox:set_SelectionColor (System.Drawing.Color)
+Expected Results:
+To set the color of the selected text.
+How often does this happen? 
+Every time.
+Additional Information:

More information about the mono-bugs mailing list