VBExpress是否已损坏或者它是一个混乱的更新? [英] Is VBExpress corrupt or is it a messed-up update?

查看:99
本文介绍了VBExpress是否已损坏或者它是一个混乱的更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我以前双击我的表单来创建一个加载事件时,它会这样:



Hi,

When I used to double-click on my form to create a load event, it would make this:

Private Sub Form1_Load(Byval sender As System.Object, Byval e As System.EventArgs) Handles MyBase.Load

...

End Sub





但现在,它使这个并且因为缺少Byvals而不会触发load事件:



But now, it makes this and the load event doesn't fire because the Byvals are missing:

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

...

End Sub

推荐答案

看起来你遇到了一个新的 Visual Studio 'feature':参见VS 2010 SP1更改ByValVB.NET代码编辑器体验 [ ^ ]。
It looks you hit a new Visual Studio 'feature': see "VS 2010 SP1 changing "ByVal" VB.NET code editor experience"[^].


这不是因为 ByVal 缺少修饰符。如果未指定它们,编译器会自动假定 ByVal



问题在于您的代码,而不是环境被损坏或坏更新。
It's not because the ByVal modifiers are missing. If they are not specified the compiler assumes ByVal automatically.

The problem is in your code, not in the environment being "corrupted" or a "bad update".


这篇关于VBExpress是否已损坏或者它是一个混乱的更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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