Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Authenticated License once Started

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
juwi_uk



Joined: 10 Mar 2014
Posts: 47

PostPosted: Sat May 10, 2014 8:55 am    Post subject: Authenticated License once Started Reply with quote

Hi

This is probably simple for you guys but I'm having trouble getting my mind around how best to do this.

I have the Infralution code in my ApplicationEvents class and it fires as expected my app starts and I can license etc OK or continue as eval.

I need an action though in my main menu so I can apply the license from within the app and I call My.Application.InstallLicense() from a menu click action and that works fine as well. Trouble is though I then have to close and reopen my app to switch from Eval/Full mode.

I'm having trouble getting my mind around how to integrate this in the Infralution code; I want that if they "Uninstall License" my app can be set back into "Eval Mode" and if they "Install License" (ie they started in eval mode) then it switches into full mode.

Should I try and hook into the Infralution code or should I test somehow after the InstallLicence (and thus authenticatedLicenseInstallForm closes).

Pulling my hair out on this one so help appreciated!

Julian
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun May 11, 2014 11:35 pm    Post subject: Reply with quote

The Authenticated Windows Forms Application sample project shows how to do this. The MainForm has an UpdateLicense method which is called in the main form constructor (ie when the application is started) as well as after the install button click calls My.Application.InstallLicense. The UpdateLicense method is where you check if you have a valid license and restrict any features you don't want available in evaluation mode.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group