我将vb项目升级到vb.net项目时出现问题 [英] Problem when i upgrade my vb project to vb.net project

查看:90
本文介绍了我将vb项目升级到vb.net项目时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

当我将vb项目升级到vb.net项目时
我收到类似
的错误
``SelText''不是``System.Windows.Forms.Form''的成员
``mnuWindowItem''不是``System.Windows.Forms.Form''的成员

``Picture''不是``System.Windows.Forms.Form''的成员


就像这样.请帮助我



如何解决此问题.

谢谢您.

Sir,

When i upgrading vb project into vb.net project
I am getting the errors like,

''SelText'' is not a member of ''System.Windows.Forms.Form''
''mnuWindowItem'' is not a member of ''System.Windows.Forms.Form''

''Picture'' is not a member of ''System.Windows.Forms.Form''


like so .please help me



How to resolve this problem.

Thank you

推荐答案

.Net告诉您,VB.Net不支持您在VB中使用的某些方法:您需要查找并使用更新的或等效方法:这意味着您将需要做一些艰苦的工作和研究.
.Net is telling you that some of the methods you used in VB are not supported in VB.Net: you need to find and use the newer or equivalent methods: this means you will have to do some hard work and research.


您是否使用了转换向导?在旧版本的Visual Studio中曾经有一个.也许您可以这样做-从VB6转换为VB2003.然后将其升级到VB2010.您仍然需要手动更改一些小事情,但是与直接转换相比,升级可能会更顺畅(您似乎可以
Did you use the conversion wizard? There used to be one in the older version of Visual Studio. Maybe you could do that - convert from VB6 to VB 2003. Then upgrade that to VB 2010. There may still be a few minor things you need to manually change, but it may be a smoother upgrade that a direct conversion (which you seem to have tried).


没有升级",因为VB.NET并非严格从VB派生,更重要的是,出于充分的原因,VB库已完全停产.因此,您不能升级",而只能编写一个新的应用程序.

要节省很多时间吗?这是我的建议:编写新应用程序时,不要看旧代码:只会延迟您的进度.我从我的同事的经验中知道这一点.


是的,正如Nishant提醒我的那样,它可以自动从VB转换为VB.NET.对不起,我忘了.您可以尝试,但是...我们在我们的团队中尝试过,但失败了.请参阅我对Nishant的答复的评论.这就是为什么我建议不要对自动转换太过兴奋.

—SA
There is no "upgrade" as VB.NET is not strictly derived from VB, more essentially, VB library is totally discontinued, for a good reasons. Therefore, you cannot "upgrade" you can only write a new application.

Want to save a lot of time? Here is my advice: when writing new application, don''t look at old code: it will only delay your progress. I know this from my colleagues'' experience.


Yes, there is automatic conversion to from VB to VB.NET, as Nishant reminded me. Sorry I forgot about it. You can try, but... We tried it in our team, failed. Please see my comment to the Answer by Nishant. This is why I recommended not to be too excited about automatic conversion.

—SA


这篇关于我将vb项目升级到vb.net项目时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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