1. Home
  2. Docs
  3. .NET Integration
  4. Standard setup
  5. Add CPS settings and validation check to main form load

Add CPS settings and validation check to main form load

As the main form loads in your app, normal practice is to disable parts of the app and then show the validation check.

 

SoftwareCode

This is the product software code configured on the license server

LicenseUrl

This is the url to the wordpress installation that contains the license manager plugin.

 

Example Code:

C#

private void frmMain_Load(object sender, EventArgs e)
{
..........

DisableApp();
Application.DoEvents();

SetupLicensingOptions();

var cpsValidate = new CpsValidate(this);
cpsValidate.ShowDialog();

.........

}

VB.NET

Private Sub FrmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

IMainForm_DisableApp()
Application.DoEvents()

SetupLicensingOptions()

Dim cpsValidate = New CpsValidate(Me)
cpsValidate.ShowDialog()

End Sub

Was this article helpful to you? Yes No

How can we help?