积极答复者
C# 拖放操作

问题
答案
-
呵呵,因为觉得去C#论坛的话,你会得到更好的帮助。 :)
我已经尝试着下载那个例子,因为是个VS2005的例子,我用VS2008来打开的。然后得到了这样以下的警告:
Warning 1 Cannot load type library for reference "CSEXWBDLMANLib". 库没有注册。 (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) csExWB
Warning 2 The referenced component 'CSEXWBDLMANLib' could not be found.
你是不是也是这样的情况呢?
详细看过那个链接上的文档说明之后,在打开项目之前先要做这些事情:
- Copy csExWBDLMan.dll located in the csExWB\COM_Component_Source_Binaries\ReleaseMinDependency sub folder to your system directory
- Register csExWBDLMan.dll using regsvr32.exe
- Open the solution
就是要先把....csEXWB\COM_Component_Source_Binaries\ReleaseMinDependency路径下的csExWBDLMan.dll系统目录下(例如:C:\windows\system32\),然后打开“运行”,用regsvr32.exe的命令来注册一下这个类库(regsvr32.exe C:\windows\system32\csExWBDLMan.dll),接着再打开这个项目。
看下问题是否解决了呢?
希望对你有所帮助。 :)
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 助-_-助 2009年10月15日 8:13
全部回复
-
上网找了段代码,基本是实现了拖动..但是左边有一块是用webbrower的,就无法发送了...可不可以拖动的时候在webbrower上面也触发FormChat的方法?
private void FormChat_DragDrop(object sender, DragEventArgs e) { string path = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString(); sendFile(path); } private void FormChat_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Link; else e.Effect = DragDropEffects.None; }
-
我记得有个属性可以设置当子控件无法响应事件的时候可以设置其容器控件响应事件 但是现在记不起来咯,期待其他朋友为你解答~~~
Wenn ich dich hab’,gibt es nichts, was unerträglich ist.坚持不懈!http://hi.baidu.com/1987raymond -
你好!
你是不是想在Webbrowser上也实现拖放的操作呢?
如果是的话,希望这个可以帮助你。
http://www.codeproject.com/KB/miscctrl/csEXWB.aspx
另外,我建议你可以去Visual C#论坛询问你的问题,相信会更有针对性的,你的问题也会得到更好的解答。
希望对你有所帮助。 :)
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. -
呵呵,因为觉得去C#论坛的话,你会得到更好的帮助。 :)
我已经尝试着下载那个例子,因为是个VS2005的例子,我用VS2008来打开的。然后得到了这样以下的警告:
Warning 1 Cannot load type library for reference "CSEXWBDLMANLib". 库没有注册。 (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) csExWB
Warning 2 The referenced component 'CSEXWBDLMANLib' could not be found.
你是不是也是这样的情况呢?
详细看过那个链接上的文档说明之后,在打开项目之前先要做这些事情:
- Copy csExWBDLMan.dll located in the csExWB\COM_Component_Source_Binaries\ReleaseMinDependency sub folder to your system directory
- Register csExWBDLMan.dll using regsvr32.exe
- Open the solution
就是要先把....csEXWB\COM_Component_Source_Binaries\ReleaseMinDependency路径下的csExWBDLMan.dll系统目录下(例如:C:\windows\system32\),然后打开“运行”,用regsvr32.exe的命令来注册一下这个类库(regsvr32.exe C:\windows\system32\csExWBDLMan.dll),接着再打开这个项目。
看下问题是否解决了呢?
希望对你有所帮助。 :)
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 助-_-助 2009年10月15日 8:13
-
耐心地等一下吧,如果有人知道的话会回复你的。 :)
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.