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 

How can I put the # of Trial days in one of my forms?

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



Joined: 23 Apr 2007
Posts: 80

PostPosted: Tue Apr 24, 2007 12:48 am    Post subject: How can I put the # of Trial days in one of my forms? Reply with quote

the subject pretty much says it - I want to put something like the popup does (You are on Day x of the 25 day trial) in the About box and the splash form.

Secondly - if there is there a way to do this, how can I skip the popup that gets generated?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Apr 24, 2007 3:12 am    Post subject: Reply with quote

The code that generates the trial message for the sample project is just in the OnLoad event eg

Code:
           ' use the EvaluationMonitor class to check whether the evaluation has expired
            '
            Dim monitor As New EvaluationMonitor("MyProductSecretName")

            If monitor.DaysInUse > 30 Or monitor.Invalid Then
                MessageBox.Show("Your evaluation has expired")
                Application.Exit()
            Else
                MessageBox.Show(String.Format("You are on day {0} of your 30 day evaluation", monitor.DaysInUse))
            End If


If you want to put this in the splash screen you can simply move this code into the spash screen OnLoad and instead of calling MessageBox.Show you want set the text of a label on your splash screen.
_________________
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