Click here to Skip to main content
16,005,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Crashed users v Active users Pin
Colin Angus Mackay12-Jun-06 1:47
Colin Angus Mackay12-Jun-06 1:47 
GeneralRe: Crashed users v Active users Pin
daveryan7812-Jun-06 2:00
daveryan7812-Jun-06 2:00 
GeneralRe: Crashed users v Active users Pin
Ray Cassick12-Jun-06 2:40
Ray Cassick12-Jun-06 2:40 
GeneralRe: Crashed users v Active users Pin
daveryan7812-Jun-06 3:19
daveryan7812-Jun-06 3:19 
GeneralRe: Crashed users v Active users Pin
Ray Cassick12-Jun-06 7:22
Ray Cassick12-Jun-06 7:22 
Questionprinting problem in vb.net1.1 [modified] Pin
amaneet12-Jun-06 0:56
amaneet12-Jun-06 0:56 
Questionlicensing in vb.net Pin
MissionSuccess11-Jun-06 23:19
MissionSuccess11-Jun-06 23:19 
AnswerRe: licensing in vb.net Pin
Kschuler12-Jun-06 8:32
Kschuler12-Jun-06 8:32 
One option would be to store the date the application was installed/should expire in the registry either during installation or the first time the user runs the app. Then insert code to check that registry value. In Visual Studio 2005 you can do this check in the ApplicationEvents.vb MyApplication_Startup Event. Like this:
Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
            'If the current date is greater than or equal to the Expiration date, then the program will not open.
            If CInt(Now.Date.ToString("yyyyMMdd")) >= gblintExpireDate Then
                MessageBox.Show(My.Application.Info.ProductName & " has expired.", My.Application.Info.ProductName)
                e.Cancel = True
            End If
End Sub
(Of course the gblintExpireDate would have to be a value from the registry instead of a global constant like I use)

Or for other versions of Visual Studio I suppose you can do this check in the OnLoad of the first form or in your main sub...

Hope this helps.
AnswerRe: licensing in vb.net Pin
DJLarZ15-Jun-06 4:33
DJLarZ15-Jun-06 4:33 
QuestionConnect to Excel,Foxpro Pin
Socheat.Net11-Jun-06 23:05
Socheat.Net11-Jun-06 23:05 
AnswerRe: Connect to Excel,Foxpro Pin
Mekong River12-Jun-06 15:41
Mekong River12-Jun-06 15:41 
QuestionConnect the access database with VB6 Pin
tadung11-Jun-06 22:46
tadung11-Jun-06 22:46 
AnswerRe: Connect the access database with VB6 Pin
Socheat.Net11-Jun-06 23:20
Socheat.Net11-Jun-06 23:20 
AnswerRe: Connect the access database with VB6 Pin
Mekong River12-Jun-06 15:43
Mekong River12-Jun-06 15:43 
QuestionUser Activity log in Windows Application Pin
vilunjike manda11-Jun-06 21:56
vilunjike manda11-Jun-06 21:56 
AnswerRe: User Activity log in Windows Application Pin
Socheat.Net11-Jun-06 23:18
Socheat.Net11-Jun-06 23:18 
GeneralRe: User Activity log in Windows Application Pin
vilunjike manda12-Jun-06 2:57
vilunjike manda12-Jun-06 2:57 
GeneralRe: User Activity log in Windows Application Pin
vilunjike manda12-Jun-06 4:34
vilunjike manda12-Jun-06 4:34 
GeneralRe: User Activity log in Windows Application Pin
Dave Kreskowiak12-Jun-06 8:32
mveDave Kreskowiak12-Jun-06 8:32 
AnswerRe: User Activity log in Windows Application Pin
Mekong River12-Jun-06 15:45
Mekong River12-Jun-06 15:45 
Questionusing DataSet Pin
iramg11-Jun-06 21:35
iramg11-Jun-06 21:35 
Questionerror: 13queryinterface for interface DTS.customtask failed Pin
bita_engr11-Jun-06 21:04
bita_engr11-Jun-06 21:04 
AnswerRe: error: 13queryinterface for interface DTS.customtask failed Pin
Mekong River11-Jun-06 21:28
Mekong River11-Jun-06 21:28 
Questionin vb sorting 2d array based on second column (urgent one plz) Pin
peter rankel11-Jun-06 0:44
peter rankel11-Jun-06 0:44 
AnswerRe: in vb sorting 2d array based on second column (urgent one plz) Pin
progload11-Jun-06 13:06
progload11-Jun-06 13:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.