为什么它会产生错误"表达所需"?
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
答案 0 :(得分:0)
要在c#中运行app,请打开c#应用程序。
你正在打开vb.net项目并询问c#代码:)
连接的实际代码在下面的c#
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Hello" + ' ' + "how are you");
}
答案 1 :(得分:0)
MessageBox.Show("Hello" + " " + "how are you")
是VB.net代码..您将其与其他代码C#或C ++代码等混合使用。