[VB.NET]求助:将一句C#代码译为vb.net代码!

前端之家收集整理的这篇文章主要介绍了[VB.NET]求助:将一句C#代码译为vb.net代码!前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
求助:将一句C#代码译为vb.net代码! this.btnUpLoad.Click += new System.EventHandler(this.btnUpLoad_Click); 这句代码用vb.net该如何编写,请高手指教。 __________________________________________________________________________ addhandler this.btnUpLoad.Click,addressof this.btnUpLoad_Click ***************************************************************************** 欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html __________________________________________________________________________ AddHandler Me.button1.Click,New EventHandler(AddressOf Me.button1_Click) __________________________________________________________________________ 满了一步.. __________________________________________________________________________ 不懂C# __________________________________________________________________________ 二楼正解,可以结帖。 __________________________________________________________________________ Me.btnUpLoad.Click += New System.EventHandler(Me.btnUpLoad_Click) __________________________________________________________________________ 在btnUpLoad_Click这个方法声明那里的后面输入Handles btnUpLoad.Click也可以达到同样的效果 __________________________________________________________________________ 如:Private Sub btnUpLoad_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles btnUpLoad.Click __________________________________________________________________________ 原文链接:https://www.f2er.com/vb/263779.html

猜你在找的VB相关文章