当从控件中复制一段含有域的文本的时候,黏贴到其他地方,该域也会被黏贴过去,请问下有没有什么办法可以只复制黏贴文字和格式,而不复制域。
第二个问题当我从一份word文档中复制一段内容的时候,黏贴到控件中,此时按cirl+z撤销会报错。
ee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Exception: 未知格式。
(01-2001)
at TXTextControl.TextControlCore.?()
at TXTextControl.TextControlCore.?(? , Int32 , Int32 , Int32 )
at TXTextControl.ApplicationFieldCollection.GetItem()
at ETUZBSoft.richTextControl.textControl1_InputPositionChanged(Object sender, EventArgs e)
at TXTextControl.TextControl.OnInputPositionChanged(EventArgs e)
at TXTextControl.TextControl.?(Message& )
at TXTextControl.TextControl.WndProc(Message& message)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ETUZBSoft
Assembly Version: 1.0.0.7
Win32 Version: 1.0.0.7
CodeBase: file:///C:/Program%20Files%20(x86)/%E6%98%93%E5%9C%9F365/%E6%98%93%E5%9C%9F365%E6%8B%9B%E6%A0%87%E6%96%87%E4%BB%B6%E5%88%B6%E4%BD%9C%E5%B7%A5%E5%85%B7/ETUZBSoft.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL |
|