[Mono-bugs] [Bug 489625] New: System.Windows.Forms.RichTextBox.SelectedText
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Mar 27 06:20:26 EDT 2009
https://bugzilla.novell.com/show_bug.cgi?id=489625
Summary: System.Windows.Forms.RichTextBox.SelectedText
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: i686
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: yom at iaelu.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Description of Problem:
I'm using a System.Windows.Forms.RichTextBox with a .Net 2.0 application. I'm
trying to get the selected text :
System.Windows.Forms.RichTextBox.SelectedText, with a shortcut (Ctrl+C) in a
Context Menu on that RichTextBox. When I debug with Visual Studio 2008, the
SelectedText property gives only the text. In mono, it gives the Rtf of that
text (not only the text).
Steps to reproduce the problem:
* create a .net 2.0 winform application,
* add a RichTextBox and put some text in that textbox
* associate a context menu strip to that rich textbox
* add a menu item 'copy' associated with the Ctrl+C shortcut
* add a click event on that menu item which makes
"Clipboard.SetText(richTextbox.SelectedText, TextDataFormat.Text);"
* run the application
* select a part of the text you've put in the rich textbox
* paste it in gedit (for example)
Actual Results:
the actual result is something like this (copy/paste from my application) :
{\rtf1\ansi\ansicpg1252\deff0\deflang1033
{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
{\*\generator Mono RichTextBox;}\pard\f0\fs16 ------server log word rewind
done------\par
}
Expected Results:
------server log word rewind done------
How often does this happen?
Always
Additional Information:
I'm using the mono-2-4 branch.
[yom at laiae UhluChat]$ mono --version
Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r130107 mar. mars 24
08:17:58 CET 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
--
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