zoukankan      html  css  js  c++  java
  • Leadtools控件变组件问题的解决方法

      Visual Studio.Net 2010正式推出已经有一段时间了,用着感觉的确比2008好,特别是Ctrl+滚轮这个代码缩放功能,更是像我这样的视力不佳者的福音。

      不过比较郁闷的是,Leadtools迟迟没有推出17的正式版,貌似还在研究如何使SilverLight的图像处理像Winform一样。所以我们不得不在VS2010中继续使用Leadtools v16.5。

      不过前两天在VS2010的Winform项目中添加Leadtools控件时出现了一个问题,添加进去的控件竟然变成了类似BackgroundWorker一样的组件,也就是不显示在窗体上了!我又打开了之前用VS2008做的项目,发现也是一样的。莫非是Leadtools在VS之前安装所以出现这样的问题?我把Leadtools卸了重装,问题依然。

      没办法,还是上eadtools官网论坛找技术支持求助吧。发好贴,等了一天半,得到回复如下:

      Try adding Leadtools.WinForms.Design.dll to your list of references before adding the controls onto the form. This dll is specifically for use with Visual Studio, and does not need to be deployed with the application itself. This dlls provides additional information to Visual Studio for the Designer to function as expected.

      也就是在添加控件之前,先添加Leadtools.WinForms.Design.dll的引用。看到回复,赶紧试了下,果然OK!

      除了这个控件变组件的问题之外,在VS2010的项目中使用Leadtools v16.5还会出现一个出现启动错误,以下是错误信息及官网公布的解决方法:

    When building a .NET 4.0 application using our .NET 2.0 assemblies, you will get a runtime error saying:

    System.IO.FileLoadException was unhandled
    Message=Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.


    To resolve this issue, you will need to open the app.config file in the project and modify the startup element.  You will need to add the useLegacyV2RuntimeActivationPolicy="true" attribute as shown in the screenshot.

  • 相关阅读:
    多任务GUI窗口系统(类window,有源码,支持汉字显示、顶层、非矩形和透明窗口)gicell源码
    怎样判断treeview当前节点为treeview显示出来的第一个节点和最后一个节点?
    用 dbgrid 或 dbgrideh 如何让所显示数据自动滚动
    vue路由懒加载及组件懒加载
    vue 中使用rem布局
    纯css实现移动端横向滑动列表&&overflow:atuo;隐藏滚动条
    分布式一致性算法Raft
    HDU_1753 大明A+B
    POJ——3630 Phone List
    HDU_2647 Reward (拓扑排序)
  • 原文地址:https://www.cnblogs.com/aaa6032/p/1765818.html
Copyright © 2011-2022 走看看