.NET项目的代码辅助 [英] Code Assist for .NET project

查看:60
本文介绍了.NET项目的代码辅助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么错误..

错误1'WindowsFormsApplication2.Register'不包含'show'的定义,也没有扩展方法'show'接受类型'WindowsFormsApplication2.Register的第一个参数'可以找到(你错过了使用指令或程序集引用吗?)C:\ Users \ Raghavendra \Documents\Visual Studio 2008 \Projects\RealEstate\RealEstate\Login.cs 48 17 RealEstate









怎样才能获得它?

What is this error..
Error 1 'WindowsFormsApplication2.Register' does not contain a definition for 'show' and no extension method 'show' accepting a first argument of type 'WindowsFormsApplication2.Register' could be found (are you missing a using directive or an assembly reference?) C:\Users\Raghavendra\Documents\Visual Studio 2008\Projects\RealEstate\RealEstate\Login.cs 48 17 RealEstate




How can get currect it ?

推荐答案

这取决于事物的日志。没有代码我们只能概括,但在某个地方你有一个名为Register的变量,你试图通过说:

That depends on a log of things. Without the code we can only generalise, but somewhere you have a variable called Register and you are trying to show it by saying:
Register.Show();



您声明注册的类没有Show方法,这意味着它不是从Control派生的,所以无论如何都无法在表单上显示它。 />
检查你对Register的定义,如果看起来没问题,看看它被声明为什么类 - 你可能忘记了正确派生它。


Whatever class you have declared Register as does not have a Show method, which implies it is not derived from Control, so you can't display it on a form anyway.
Check your definition of Register, and if that looks OK, look at whatever class it is declared as - you may have forgotten to derive it correctly.


这篇关于.NET项目的代码辅助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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