Author Topic: C# reference converted to VB.Net from "https://quantum-key.net/index.aspx"  (Read 865 times)

Modulus

  • Guest
For any of those using VB.net as their preferred programming language, here is the C# code converted to VB.Net for your reference.


Original code from https://quantum-key.net/index.aspx "How much coding is involved?" section.

Code: [Select]
LicenceCheck licenceCheck = new LicenceCheck();
licenceCheck.ShowDialog();
if (!licenceCheck.IsClosing) { if (licenceCheck.IsLicenceValid)
{
 // code to launch full version of your software
}
else
{
    // code to launch demo version of your software
}
}

Code converted from C# to VB.Net

Code: [Select]
Dim licenceCheck As LicenceCheck = New LicenceCheck
licenceCheck.ShowDialog
If Not licenceCheck.IsClosing Then
    If licenceCheck.IsLicenceValid Then
        ' code to launch full version of your software
    Else
        ' code to launch demo version of your software
    End If
   
End If

Let me know if this helps  :)
« Last Edit: May 31, 2018, 09:56:44 am by Modulus »