无法将代码转换为vb.net,请求帮助

无法将代码转换为vb.net,请求帮助,vb.net,Vb.net,我试图将以下代码转换为vb.net,但联机转换器返回错误。有人能帮忙吗 JohnKenedy.BusinessSQLEXPRInstaller _ins = new JohnKenedy.BusinessSQLEXPRInstaller( "<Installation Display Name>", "localhost", "<New database instance name>", "<new database name>", "<

我试图将以下代码转换为vb.net,但联机转换器返回错误。有人能帮忙吗

JohnKenedy.BusinessSQLEXPRInstaller _ins = new JohnKenedy.BusinessSQLEXPRInstaller(
    "<Installation Display Name>", "localhost", 
    "<New database instance name>", "<new database name>", "<database password>", 
    "<database backup filename>");

if (_ins.IsDone == false) _ins.ShowDialog();
if (_ins.IsRestart == true)
{
    Application.Exit();
    this.Close();
    return;
}
johnkendy.businesssqlexprinshiller\u ins=new johnkendy.businesssqlexprinshiller(
“”和“本地主机”,
"", "", "", 
"");
如果(_ins.IsDone==false)_ins.ShowDialog();
如果(_ins.IsRestart==true)
{
Application.Exit();
这个。关闭();
返回;
}

这些代码转换器通常希望您将代码放在类中,而不仅仅是一些代码存根

    Dim _ins as JohnKenedy.BusinessSQLEXPRInstaller = New JohnKenedy.BusinessSQLEXPRInstaller("<Installation Display Name>", "localhost", "<New database instance name>", "<new database name>", "<database password>", "<database backup filename>")
    If _ins.IsDone = False Then _ins.ShowDialog()
    If _ins.IsRestart = True Then
        Application.Exit()
        Me.Close()
    End If
Dim\u in as johnkendy.businesssqlexprinshiller=New johnkendy.businesssqlexprinshiller(“,”localhost“,”“,”“,”“,”“,”)
如果_ins.IsDone=False,则_ins.ShowDialog()
如果_ins.IsRestart=True,则
Application.Exit()
我
如果结束

这些代码转换器通常希望您将代码放在类中,而不仅仅是一些代码存根

    Dim _ins as JohnKenedy.BusinessSQLEXPRInstaller = New JohnKenedy.BusinessSQLEXPRInstaller("<Installation Display Name>", "localhost", "<New database instance name>", "<new database name>", "<database password>", "<database backup filename>")
    If _ins.IsDone = False Then _ins.ShowDialog()
    If _ins.IsRestart = True Then
        Application.Exit()
        Me.Close()
    End If
Dim\u in as johnkendy.businesssqlexprinshiller=New johnkendy.businesssqlexprinshiller(“,”localhost“,”“,”“,”“,”“,”)
如果_ins.IsDone=False,则_ins.ShowDialog()
如果_ins.IsRestart=True,则
Application.Exit()
我
如果结束

它生成了什么代码,那个错误是什么?它生成了什么代码,那个错误是什么?如果您也想转换return语句,如果封闭方法是Sub(在C#中为void),则使用
Exit Sub
,如果封闭方法是函数(返回值的方法),则使用
Exit Function
@AshBurlaczenko:不,第一个if在一条线上,所以不需要结束if。谢谢。。。。。你能告诉我什么是Johnkendy.businessSQLExprinshigher吗?以及如何添加它?如果您还想转换return语句,请使用
Exit Sub
如果封闭方法是Sub(在C#中为void)或
Exit Function
如果封闭方法是函数(返回值的方法)。@ashburaczenko:不,第一个If在一行上,因此不需要结束If。谢谢。。。。。你能告诉我什么是Johnkendy.businessSQLExprinshigher吗?如何添加它?