Reputation: 4997
i am trying to convert the following code to vb.net but online converters return error. Could any body help please?
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;
}
Upvotes: 0
Views: 95
Reputation: 3717
For what it's worth those code converters usually want you to have the code in a class, not just some code stub.
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
Upvotes: 4