DemoDaysLeft
Interface AntView
Type: Property
Access: Read-Only
Data Type: Boolean
Returns the number of days left in demo mode, or -1 if not in demo mode.
When the control is instantiated you can either license it or let it run without a license.
If run without a (valid) license then the control will run in demo mode for 30 days.
A purchased license does not expire.
We still recommend you to keep the support subscription active so that a breaking change in the WebView2 API gives you quick access to fixes in AntView. An active subscription also gives you access to any new features that are released.
A code example in Visual Basic:
Private Sub Form_Load()
Dim LicenseText As String
Dim Days As Integer
Dim eStatus As TxUnlockStatus
On Error Resume Next
Me.Show
tbToolBar.Refresh
Form_Resize
LicenseText = "AntView License Status = "
EdgeWebBrowser.UnlockControl "ExampleCompany", "WI5PO2-2KSU3Q-HWFXFU-IUMU2V-QF8P2F"
eStatus = EdgeWebBrowser.UnlockStatus
If (eStatus = usLicensed) Then
LicenseText = LicenseText & "Licensed"
End If
If (eStatus = usDemoLicense) Then
Days = EdgeWebBrowser.DemoDaysLeft
LicenseText = LicenseText & "Demo with " & (CStr(Days)) & " Days Left."
End If
If (eStatus = usUnlicensed) Then
LicenseText = LicenseText & "Expired demo license."
End If
InfoText.Text = LicenseText
EdgeWebBrowser.CreateWebView
EdgeWebBrowser.EventsUseHexadecimal = True ' For VB we need to use the Hexadecimal event variants
If Len(StartingAddress) > 0 Then
cboAddress.Text = StartingAddress
cboAddress.AddItem cboAddress.Text
'try to navigate to the starting address
EdgeWebBrowser.Navigate StartingAddress
End If
End Sub
See also: UnlockControl, UnlockStatus
AntView - The MS Edge WebView2 ActiveX control Date last changed: 04/16/2025