Why it is producing the error "expression required"?
为什么它产生错误“需要表达式”?
Public Class WinApp
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub buttonSubmit_Click(sender As Object, e As EventArgs) Handles buttonSubmit.Click
MessageBox.Show("Hello" + ' ' + "how are you");
End Sub
End Class
2 个解决方案
#1
0
In order to run app in c# open the c# application . You are opening vb.net project and asking c# code :) Actual code for concatenate is given below in c#
要在c#中运行app,请打开c#应用程序。您正在打开vb.net项目并询问c#代码:)下面在c#中给出了连接的实际代码
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Hello" + ' ' + "how are you");
}
#2
0
MessageBox.Show("Hello" + " " + "how are you")
is the VB.net code .. you're mixing it with some other code C# or C++ code etc.
MessageBox.Show(“Hello”+“”+“你好吗”)是VB.net代码..你将它与其他一些代码C#或C ++代码等混合在一起。
#1
0
In order to run app in c# open the c# application . You are opening vb.net project and asking c# code :) Actual code for concatenate is given below in c#
要在c#中运行app,请打开c#应用程序。您正在打开vb.net项目并询问c#代码:)下面在c#中给出了连接的实际代码
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Hello" + ' ' + "how are you");
}
#2
0
MessageBox.Show("Hello" + " " + "how are you")
is the VB.net code .. you're mixing it with some other code C# or C++ code etc.
MessageBox.Show(“Hello”+“”+“你好吗”)是VB.net代码..你将它与其他一些代码C#或C ++代码等混合在一起。