从VB代码转换后的C#表单加载错误 [英] C# form load error post conversion from VB code

查看:76
本文介绍了从VB代码转换后的C#表单加载错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我使用VBUC工具将我的VB应用程序转换为C#。现在,当我尝试从C#代码加载表单时,我收到以下错误。







可以找不到类型'C1.Win.C1TrueDBGrid.C1TrueDBGrid'。请确保引用包含此类型的程序集。如果此类型是开发项目的一部分,请确保使用当前平台或任何CPU的设置成功构建项目。



变量'GridClas'要么未声明,要么从未分配过。

变量'GridParameters'要么未声明,要么从未分配过。

变量'GridValues'要么是未声明的,要么是从未分配过的。



是否有任何装配丢失?



请帮忙这方面。



问候,

Joy

Hello Everyone,

I converted my VB application in to C# using VBUC tool. Now when I try to load a form from C# code, I get below error.



Could not find type 'C1.Win.C1TrueDBGrid.C1TrueDBGrid'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.

The variable 'GridClas' is either undeclared or was never assigned.
The variable 'GridParameters' is either undeclared or was never assigned.
The variable 'GridValues' is either undeclared or was never assigned.

Is there any assembly that is missing?

Please help in this regard.

Regards,
Joy

推荐答案

机会很好您缺少对Component1 TrueDBGrid组件的引用。
Chances are good that your missing a reference the Component1 TrueDBGrid component.


这篇关于从VB代码转换后的C#表单加载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆