if Login.LoginResult.Success Then
'Do initialization Stuff...
End If
Any idea's? Also, is this the best place to add this type of initialization code?
Hope everything is fine with you.
In the help file, under "Showing the Initial Login Form", it states:
"Once the LoginFormType has been set (or left to the default value), you can call the Login.ShowLoginAndAuthUser() method to show the login form and authenticate a user into the system. The method will return a Boolean value indicating whether the end-user was authenticated or he/she canceled out of the form and the application should exit."
Does this answer it?
Hope it helped.
Private Shared Function IsLicenseOK() As Boolean '-- Test the license and return a valueEnd FunctionThen, you would replace the login code with this:
e.ShowMainForm = Login.ShowLoginAndAuthUser(True) AndAlso IsLicenseOK()
You can use the "AndAlso" to test both values... if the first one fails (the user doesn't auth), then the second one is never evaluated.