Set The Program So That It Only Work For A Period Of Time
Mar 12, 2011I want my program to work for a certain period of time, may be one month.. two month..
View 1 RepliesI want my program to work for a certain period of time, may be one month.. two month..
View 1 RepliesI have developed a system which i want my client to use for trial purpose for 1 month. i want a software or an idea to time the system for that period after which it should cease to work.
View 1 RepliesIs there a way to code, so that if your program freezes over a period of time (5sec), it just stops trying to do it, and goto something else.
"On ERROR" wont work, since its not a error. "Try" doesnt work ether.
Its because I'm am programming something that can login to a router thought telnet, and sometimes the telnet ActiveX doesn't read the buffer or the line proberly, so when the .GetLine() func is called, it freezes. And i want away to goto another point if it keeps freezing for more than 5secounds. The telnet ActiveX that, I am using is Dimac w3sock.
Out of curiosity, is there a way i can make a program stop or pause for a period of time (which i would choose) before continuing the code WITHOUT a timer.I think I've seen this done before, but I'm not positive.Also note that I'm talking about a forms application (not a console app if that would be any different.)
View 3 RepliesI am trying to display a dialog for a period of time. if the user is not present, I want it to close and perform a task. I am using a background worker, which is supposed to simulate a button click. It performs the button click fine, but the dialog never goes away.
Private Sub Backgroundworker_ProgressChanged() Handles BackgroundWorker1.ProgressChanged
If Me.BackgroundWorker1.WorkerReportsProgress >= 100 Then
[Code].....
take a shot from a camera every last day of the month at midnight. I know how to to take the shot, but I don't know how to generate an event repetitively after a time period. I thought about to calculate the time between now and the next shot time, but how to run a method after a time period?
View 3 RepliesHow I can stop my application if not use it for a period of time ?
View 1 RepliesI have been trying to find out of the last hour how to do something proberbly very simple ?
I have a button, when I click on it, I want to loop the code inside this button for 60 seconds.
How can I loop through each date in a given time period so that I can add those dates as a column name in a table. I want to create datatable with the person's name and hours he worked in a given time period. The user will select the dates and I want to show each day/date in that table as a column name.
View 1 RepliesI have set up a simple quiz where you drop answers to the correct question. I have implemented a system where the are 18 text boxes (9 for questions, 9 for answers) and it can be customised but I want the questions to be able to be 'saved's since it in another form the if I give them special names when I close the form and open it again it has lost the values. Is there a way to remember the variables for a set period of time (cookies?) or if not just for that session?
View 2 RepliesI am looking for a library doing set operations on time periods with support of weekdays and time of day. I have started to roll my own, but it seems like a error-prone job so I would like a tested solution for this.I don't mind spending money. If I have a set of two time periods (this can be several)
[Code]...
I have created a windows service in C# .net and now I want it to alert me if its going to shutdown. For this I make use of Dispose/Unload events but now I want if the services are stopping due to system shutdown process it will alert me.
View 1 RepliesI have already made an algorithm for the problem but it still got a trouble.Suppose that I have the recap of schedule (contains on gridview named GV):
TimeStart TimeEnd TotalOccuredOnThisTime
----------------------------------------------
08.00 08.50 1
08.00 09.40 43
08.00 10.50 2
What I want to get from the algorithm is, to count the time that occured on the same period, e.g. on the time of 08.00, it's occured 46 event (see the yellow colored row).This is my algorithm:
Dim ColumnLength As Integer = GV.Rows.Count
Dim TimeStart(ColumnLength - 1) As Integer
Dim TimeEnd(ColumnLength - 1) As Integer[code]......
I am developing an application that prompts an user for doing certain tasks in a form. What i want is that a certain message should be popped for a certain amount of time and then close (probably say 2 seconds or so). I tried doing it with message boxes but they do not close on their own as they are designed to be modal (to wait for user command ). i do not want to display the text in a textbox of listbox. Is there a certain way i could do this.
View 4 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 know about DateDiff and TimeSpan. I am doing a project. I save a date in the registry. Now, I have to test this date against today's date and calculate the differences in minutes, hours, days, months, weeks and years.
I save the date in the registry like this:
Application.UserAppDataRegistry.SetValue("Date", [Date])
I then made a sub to calculate the differences:
Private Sub Calculate()
Try
Dim DateGen As Date
DateGen = CType([Date], Date)
Select Case TimePeriod
[Code] .....
As you can see, based on the difference between these dates ( today's date and the registry date ), a sub gets called and the program continues. Unfortunately, the minutes and hours never calls the RandomAlpha sub. How can I calculate the difference in minutes, hours etc.????
I'm making a financial application, I need the application to close if the user did not do anything for a cretin period of time.
View 9 RepliesI have the below code. What happens if the Upload method takes more than one minute for completion? Does the timer kick off another call to the Upload method immediately after one minute is over or Does it wait until the method finishes executing? I am implementing this as a windows service.
Protected Overrides Sub OnStart(ByVal args() As String)
Dim tmr As Timer = New Timer(New TimerCallback(AddressOf Upload), Nothing, 1000, 60000)
While Not tmr Is Nothing
[code]....
How do programs like antivirus keep track of time passed for the trial period? Eg I want to make a program that expires and stop working in 30 days One way I thought of is to make use of the system time.
View 6 Repliesive been wanting to put some kind of self destructing code in my application that deletes itself after a given period of time. (like 2 weeks)
View 3 RepliesWhen displaying a message to the user using 'msgbox', is it possible to have the msgbox close after a set period of time, if the user has not clicked on OK?
View 2 RepliesI'm trying to connect a remote mysql database. I'm doing it from a vb.net 2005 application with a connector mysql.data.dll What's happening is, suppose if I try to connect thrice it connects twice and once throwing an exception that says A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. there's nothing wrong with the code, otherwise it would never have connected
View 4 RepliesI'm building a VB(2010) program to create the graphics for my laserprojector.The program works when I debug it in VB, but when I run the EXE program in the release directory, it doesn't work. The problem in the EXE program is theat I can't draw/view graphics in the picturebox..I coppied my whole program to a new VB project, but I'm having the same problem...In the original project, where the program works, there are no warnings or errors.
View 3 RepliesUsing VB.NET 2008 desktop project, I created a simple tooltip on Form_Load event and attached it to a button on the form. Looks great when user hovers over button but times out after 30 seconds (which I set using popup delay etc.). But once it fades out, the second time user hovers over the button, the tooltip never shows up. Almost like it dies a natural death!
View 1 RepliesI have a form which has many textboxes on it, some are dynamically generated and some are not. They structure is something like this:
[Code]...
Is there a way to create a collection of all of the textboxes so that I can access all at any time? Like when I need to clear them, or when I need to compare them. Right now I either access them one by one, like textbox1.text or I run a loop starting from the main flowlayoutcontrol, going inside, testing if control is another flowlayout, then going deeper and so on. Seems like there should be another simpler way to do this though, is there?
I am really confused! My program doesn't work if I don't have Visual Studio here in my PC. To test it I have uninstalled Visual Studio. But my program doesn't work though Flash Player is present there (I have used Flash animation in the first form).
To be more sure about it I have installed Flash. But it's not working! That means the Flash animation file (.swf) is not making a problem! It needs support from Visual Studio to start. Doesn't it mean that some files are not attached with a setup file as a result it needs Visual Studio to run? Let me tell you how I create a setup file of my program.
CODE:
When I click on the icon of my program it shows the error message
CODE:
Reporting details: This error report includes information regarding the condition of WindowsApplication1. When the problem occurred the operating system version and computer hardware is use; your Digital Product ID, which could be used to identify your license; and the Internet Protocol(IP) anddress of your computer.
i have to send a time sheet to my work each week. which i do in word. what i want to do is be able to open my word document keeping the exact same format, tables must be the same, allowing me fill out the timesheet in my vb app, i could make life so much easier doing this. because i have alot of functions i could add using vb to make my life so much easier.
View 4 RepliesHow can more than one programmer work on the same project at one time? is this possible? it surely must be possible??
View 2 RepliesSo i know this is more Math related but it would make life so much easier. What i want to do is enter 2 times into 2 text boxes and then subtract them from eachother to find out the hours inbetween as a decimal.
View 8 RepliesWith a Time value in my program. Basically, I am importing a travel Time from a database e.g. 3:45 so it takes 3 hrs and 45 minutes to get from a to b. I then want to double this - 3:45 * 2 = 7:30, and then want to multiply it by a cost e.g. travel is charged at 25 per hour. so it would be total travel time = 7:30. Travel cost = 25. Total Travel Cost = 7:30 * 25. In the access db, it is stored as a text field, and then imported in vb as a string.
View 1 Replies