Code To Setup Program To Expire After 30 Days
Jan 12, 2011Is there code in visual basic 2008 where i can set my program to expire every 30 days ?
View 4 RepliesIs there code in visual basic 2008 where i can set my program to expire every 30 days ?
View 4 RepliesIs there code in visual basic 2008 where i can set my program to expire every 30 days ?
View 8 RepliesI am creating a project which i will be selling to an organization
View 9 RepliesHow we can built an application in vb.net that would expire after one month.
View 1 RepliesThis is my first time writeing a program and i am stuck. i am just looking for were i should go next. i can't figure out how to write in code for the days in the getDay function.
Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule:
a. Any call started between 7:00 A.M. and 9:00 P.M., Monday through Friday, is billed at a rate of $0.30 per minute.
b. Any call started before 7:00 A.M. or after 9:00 P.M., Monday through Friday, is billed at a rate of $0.15 per minute.
c. Any call started on a Saturday or Sunday is billed at a rate of $0.10 per minute.
The inputs will consist of (1) the day of the week, (2) the start/end time of the call, and (3) the length of the call in minutes. The output will be the cost of the call. Input will come from the user and outputs will be displayed via the console window.
Module program1
Sub Main()
Dim day As String
day = GetDay()
[CODE]...
How to lock program.create count number at file or registry,i want to high security.
View 6 RepliesMy friend's birthday is coming up in 4 days. I am currently out of the country(on the other side of the world),and I want to give her a program for her birthday.
View 5 Replieshow do i get total no of days between two days which might include leap year
right now i'm getting the no of days by using DateDiff function in vb.net. but i reckon it is not precise. cos it is not validating leapyear.
I need this for 2 different changes.ON one form i got a week calendar, the other a month calendar.Was hoping to add 2 buttons previous & next.To scroll back in time x days, or x days forward.And similar for the months, but instead of days months.Can anybody give me a exaple or a method how to get this to work?Figured it could be done with a loop, but not sure anymore.
View 2 RepliesI'm working on this program to delete .tmp files that are older then 5 days. The only problem that im running into is if there are no files older than 5 days to display a messagebox "There are no .tmp files older than 5 days". Im using VB.net, this is that i have so far.
Quote:
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Try
[Code].....
The function for getting the difference in days between two days is giving me a wrong answer here.What could i be doing wrong??? DateDiff(DateInterval.Day, CDate("28/1/2011"), CDate("31/1/2011"))
View 1 RepliesI am making a program which calculates the cost of (Let's say) Spent Electric Energy for a number of days,defined by the user..I have 2 Date Time Picker and x (The average energy spent in a day) where x must be an integer and it is defined by the user x * (DateTimePicker2.Value - DateTime Picker1.Value) = y (The value to be paid for a number of days)
View 4 RepliesThe local car rental company rents cars for 29.95 per day with unlimited mileage. There is a refueling fee of 12.95; regardless of what the level of fuel is when the car is returned. Write a program that will permit the user to input the customer's first and last names and the number of days that the car was rented. The program should compute the total charge for the car that was rented.
I have to do this:
A. using a standard window
B. Using a WPF window (And I don't even know what that means)
C. Using a console application
Get the current number of usage days, unique usage days, etc in an evaluation license using CryptoLicensing Generator.
View 1 Repliesconvert days to months and days?
Normal 0
false
false
falseEN-US
[Code]...
I have a date in the future e.g. 13/10/2008 I need to subtract the current date (today is the 28/09/2010) minus 7 days, so thats 21/09/2010 minus 13/10/2008, which would equal erm, 720 something ? But the current date won't always be 28/09/2010, obviously. I need the code for this. EDIT: When i said future I mean past :)
View 3 RepliesI'm studying creating webpages in VB.Net. After a successful Logon, I want that page to expire or simple disallow users to 'go back' to that page (not necessarily disable the back button). I have created webpages under the Master Page.
View 6 RepliesI am trying to write some code to check the AD password age during a user login and notify them of the 15 remaining days. I am using the ASP.Net code that I found on the Microsoft MSDN site and I managed to add a function that checks the if the account is set to change password at next login. The login and the change password at next login works great but I am having some problems with the check for the password age.
[Code]...
I have an application which has been deployed in a setup programme, but have lost the original project setup code.The new versions setup project has a different 'Upgrade code' GUI in the setup project and therefore when you try and upgrade the product it throws an error saying that a later version of the product is installed!
Is there any way for me to retrieve the Upgrade Code from an installed version of the program so that I can amend the new installer to match the old program.The program has to be installed to 350+ desktops via active directory, so no answers with silly shortcuts that only work for a single PC please people.
Private Sub Add_FinancialContact(ByVal intProvID As Integer, ByVal intFinID As Integer)
need to setup the syntax for the below
adaptFinancialContact = New SqlClient.SqlDataAdapter("Select * From tblFinancialContactTest Where ProviderID = " & intProvID" AND FinancialContactID = " & intFinID")
I am trying to insert a row in a table using simple INSERT Query in a transaction. It works fine in SQL Server but I am not able to insert the data using my business object.I am calling a SELECT query using the Command as:
Using cm As New SqlCommand
With cm
.Connection = tr.Connection
.Transaction = tr
[code]....
I am getting the Timeout period expired error at ".ExecuteNonQuery()" line.Any other DML query is running perfectly fine at this point.
I have a Login.aspx page where if the user has the 'Remember Me' checked then it stores their username in a cookie for a year so whenever they hit the login page (session timed out, or they clicked logout at some point) the username is pre-filled. The pre-filling is working fine, in fact it works every time. The flip side is if they login and the 'Remember Me' isn't checked, then that cookie (whether it exists or not) needs to go away. The going away part never happens, even though I'm expiring the cookie. here's the cookie name, at the top of the form:
[Code]....
Well for who is willing to give this ago, all you need is 1 webbrowser and 1 button. Set the webbrowser to navigate to [URL] and the button goes the code to expire the cookie JSESSIONID which is generated by the website.
Ok the problem is that i can not delete the cookie before it expires so the only way is to set the cookie to expire e.g. webbrowser1.document.cookie.expire -1d Expires can only be used if you dim something as cookie i think.
Things i tried:
Dim cookie = WebBrowser1.Document.Cookie
If Not cookie = "" Then
cookie.Split(";")
[Code]....
This script is the only thing that works but i know nothing about this language but it does work it expires the cookie and the page lets me get another email address BUT it takes many many tries, restarting the debugging ect... because the cookie JSESSIONID is somehow not always in the same possition so when it is not first on the list i think it doesnt work (if you are going to test this you need to wait 2 secs untill the browser realises the cookie expired if more than that then u know u need to re start debugging and try again)
This should be easy but i have no idea where to start:
Do a lop through all cookies in webbrowser.document.cookie and find "JSESSIONID" cookie, expire it by -1d and then add it back to the browser.
or do a lop where the cookie is in the computer, open expire it and reupload.
Source code for setup of vb.net project application?
View 3 RepliesI have looked through couple of threads about making the trial application to be expired within certain time. Most of the advice is to set a timer and store it in somewhere in the system with encrytion. Then later decrypt and compare with the date installed in the system.
View 12 RepliesI'm working on a project for my IT company that will run for a year and once the year is completed I want the application to expire and prompt for a key to function. This application will run on local HDD environment.
View 10 RepliesI have VB Express and I need to make my sofware expire on a certain date. I do not want it like a trial period, I want every edition of the software to expire at the same time (15/02/12). I also do not want the software to be tricked if the system clock is put back so it needs to store the date the software is first launched and calculate the diference so it knows the true date. When the software has expired I need a message box to open, with a yes and no button. If the user clicks the yes button an IE window opens to my channel on youtube and if they click no the program exits. I have tried everything but I can't work it out.
[Code]...
I must create a setup program and the programm is done with Vb net 2010 + sql server 2008.
Do you know a programm to create a setup, possibly free and that included prerequisites?
Does any one know how to make a setup in visual basic 10 express without publishing!
View 2 RepliesI'm writing a program to deploy laptops in a domain environment. I'd like to invoke the windows setup feature that some laptop manufactures use to install applications after windows xp is installed.
View 3 Replies