问题描述
您更喜欢哪种?
Classic VB示例:
****************** ***** $
Private Sub Command1_Click()
MsgBoxHello,World
End Sub
VB.NET示例:
**************************
Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As
System.EventArgs)处理Button1.Click
MessageBox.Show(" Hello ,World")
End Sub
Which do you prefer?
Classic VB example:
*************************
Private Sub Command1_Click()
MsgBox "Hello, World"
End Sub
A VB.NET example:
**************************
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MessageBox.Show("Hello, World")
End Sub
推荐答案
您更喜欢什么?
Classic VB示例:
******* ******************
Private Sub Command1_Click()
MsgBox" Hello,World"
End Sub
Private Sub Command2_Click()
MsgBoxHello,World
结束子
私人子Command3_Click()
MsgBox"他llo,World"
End Sub
Private Sub Command4_Click()
MsgBoxHello,World
End Sub
Private Sub Command5_Click()
MsgBoxHello,World
End Sub
Private Sub Command6_Click()
MsgBoxHello,World
End Sub
Private Sub Command7_Click()
MsgBoxHello,World
End Sub
VB.NET示例:
**************************
Private Sub Button1_Click( ByVal sender As System.Object,ByVal e As
System.EventArgs)
处理Button1.Click,Button2.Click,Button3.Click,Button4.Click,
Button5.Click,Button6.Click,Button7.Click,
MessageBox.Show(" Hello,World")
End Sub
What do you prefer?
Classic VB example:
*************************
Private Sub Command1_Click()
MsgBox "Hello, World"
End Sub
Private Sub Command2_Click()
MsgBox "Hello, World"
End Sub
Private Sub Command3_Click()
MsgBox "Hello, World"
End Sub
Private Sub Command4_Click()
MsgBox "Hello, World"
End Sub
Private Sub Command5_Click()
MsgBox "Hello, World"
End Sub
Private Sub Command6_Click()
MsgBox "Hello, World"
End Sub
Private Sub Command7_Click()
MsgBox "Hello, World"
End Sub
A VB.NET example:
**************************
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Handles Button1.Click, Button2.Click, Button3.Click, Button4.Click,
Button5.Click, Button6.Click, Button7.Click,
MessageBox.Show("Hello, World")
End Sub
我更喜欢c#版本:-)
I prefer the c# version :-)
这篇关于你喜欢哪个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!