Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 C# 中的原始代码的聊天服务器转换为 vb.net。我遇到了一些错误,例如语法错误。在这段代码上Try New UserPartInfo(textBox15.Text, textBox14.Text, UserFullInfo.Permission.Pest)
Try New UserPartInfo(textBox15.Text, textBox14.Text, UserFullInfo.Permission.Pest)
这是完整的代码。巴斯宾
您必须声明一个变量,然后为其赋值:Dim a = New UserPartInfo(textBox15.Text, textBox14.Text, UserFullInfo.Permission.Pest)
Dim a = New UserPartInfo(textBox15.Text, textBox14.Text, UserFullInfo.Permission.Pest)