http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/execcommand.asp
解决方案 »
- 程序异常,堆栈溢出??
- 请教一个关于观察者模式的问题。
- C#EXE引用DLL中的参数为什么不对
- 如何实现,让文本框只能输入数字,不能输入非数字字符呢?
- [图]远程桌面控制软件,请问大家有什么好的方法实时监控桌面
- 服务器如何找到本地路径,只有这么点分了,急~~~
- sharpdevelop怎么安装html编辑器控件?
- 问题xx
- 数据库里提出来的图片怎么放在C# WebForm的DataGrid中?
- 我使用HttpWebResponse response = (HttpWebResponse)request.GetResponse();
- 大家看我的listBox的数据绑定有什么不对?
- 序列化问题,急
function AddLink()
{//Identify selected text
var sText = document.selection.createRange();
if (!sText==""){
//Create link
document.execCommand("CreateLink");
//Replace text with URL
if (sText.parentElement().tagName == "A"){
sText.parentElement().innerText=sText.parentElement().href;
document.execCommand("ForeColor","false","#FF0033");
}
}
else{
alert("Please select some blue text!");
}
}这段代码在C#中怎么写?
为什么总是说“灾难性故障 interop.DHTMLEDLib”.
高手救救我。
{
try
{
object selectRange=this.axDHTMLEdit1.DOM.selection.createRange();
this.axDHTMLEdit1.ExecCommand(DHTMLEDLib.DHTMLEDITCMDID.DECMD_COPY,DHTMLEDLib.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref selectRange);//看这里用了控件的ExecCommand方法
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}