Set The Time For A Program?

Apr 19, 2011

I need to make a program that executes other programs and makes then believe the time I want. For example, If my PC time is 6/4/2009 12:15am, I want the program I'm executing to think the time is 2/3/2009 6:00pm.

View 3 Replies


ADVERTISEMENT

Time Formating And Calculation - Time Value In My Program ?

Feb 23, 2010

With 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

Allows A User To Select A Program To Run At A Certain Time For A Specific Amount Of Time All Choosen By The User

Jul 1, 2010

I have a program that allows a user to select a program to run at a certain time for a specific amount of time all choosen by the user. Everything works with the exception of if my program has launched the other program, my program become non-responsive. Meaning I am not able to look at that window again. Not that one really needs too, because when time is up my program closes the program it opened, then closes itself. I just want to be able to see my program when the other program is running. how to do this and perhaps drop me some links, that would be wonderful. This is what I have coded, but like I stated there are no code errors.

[Code]...

View 5 Replies

Save The Settings Of Program So That They Are The Same Every Time Somebody Uses The Program

Apr 14, 2009

I am currently using vb 2008 and want it so when a user registers it will unlock all the extra features and stay that way even after the user quits and restarts the program... I already have everything set exept for the save feature. I don;t know exactly what to do. I just want to save the settings of my program so that they are the same every time somebody uses the program. I heard that you need to go into Project , then properties and then settings... But I don't understand what to do there...

View 2 Replies

Program Builded With VB6.0 - Run Uncertain Time - Program Will Crash - Oleaut32.dll Error Message (Error Code: 0x00048f9) In Event Viewer

May 5, 2011

The program has errorhandle and write log function, however, it could not catch the error message in the program.

The following error message in Event Viewer. Error Module: oleaut32.dll ,version 5.1.2600.5512, error code: 0x000048f9

View 1 Replies

End Program At A Certain Time?

Feb 27, 2010

Is it possible to auto-end a vb.net app? Let's say for 5 minutes it will kill its own process if it is not being used by the user or is passive.

View 1 Replies

Allow Only One Program Running At Specified Time?

Jan 21, 2010

we have this situation, we need to 'force' user to do stock opname at specified time, so when the time has arrived..the stock opname program will run while their current running is'freeze' until the opname is done..

View 10 Replies

Date And Time In A Program?

Jun 7, 2011

What is the syntax that should be used in order to check if 08-Jan-2010 is before or after today.

I mean:If 08-Jan-2011 < today's date Then
msgbox("08-Jan-2010 is in the past")
Elseif 08-Jan-2010 > today's date
msgbox("08-jan-2010 is in the future")
Else
msgbox("08-jan-2010 is today's date")

This is exactly what I need to know

View 5 Replies

Program Gets Slow Down Over Time

Nov 5, 2010

I have a program that after clicking start, starts looping. Most of the code is in the "start" button event, and the timer keeps calling it every second. Basically the program reads a line from the serial port, opens and reads a couple text files, opens and writes a couple text files, sends a string out the serial port, then repeats.

After about 24 hours of running, the computer and this program get very slow. Screen updates get really slow and clicking on buttons takes the program several seconds to respond. The actual loop itself slows too, I think, but not much. Restart the program and everything is happy again. What would be the best way to go about troubleshooting this? [Code]

View 4 Replies

Run A Program At A Specific Time?

Jan 21, 2010

I am aware that if you wish to run a program at a specific time, the best way is to add it to the windows task scheduler. I have a forms application that accepts as input a text file and some button selections before the actual main runs.
Can this kind of program be scheduled? I realize I would have to hard code the inputs but does .net have any features to access the task scheduler?

View 2 Replies

Checking If Program Is Running For The First Time

Nov 17, 2009

I'm making a new program so I won't be able to post my code here yet.

But I wanted to ask you fine folk how I can check if a program is running for the first time.

[code...]

Just start the program normally and when they click the menubar ask for the password they set in the first time

if it's a little iffy on my side but I just started this project and I've only made the GUI and I have no idea what so ever how to do this.

View 5 Replies

Date Be Used To Limit The Time A Program Can Be Used?

Dec 16, 2009

I want to quickly limit the time that someone can use my program and do it without licensing software for now. Can I use an If'Then statement to check to see if today's date is later that a date that Ihard type similar to this conceptually. I am using VB2008.

If today's date > 1-1-10 then
Messagebox.Show ("Your trial period has expired.")
Else Form2.show()

View 4 Replies

Got The Program To Count All Keys At The Time?

Nov 10, 2009

Im making an key counter and ive got the program to count all keys at the time, i just can't count mouse buttons, i would really like to have help with this, if any of you wanna help im online at my own IRC chat. [URL]..

View 2 Replies

Open A Program As Another Date And Time?

Aug 21, 2010

Is it possible to create a program to run a program in another time?I mean you can run a program and give it a different time, such as three hours against the program (only by that program) say that one hour is?

View 12 Replies

Program 2008 Run Time Error

Dec 20, 2009

I developped a small application with two date time pickers and a button user controls and it exports datatables to excel sheets. its working perfect on my pc using windows vista and office 07. but when i tested it on another machine using windows 2000 and office2000 i got the following error:

failed to activate control vb user controle. this control maybe incompatiblewith your application. make sure you are using the version of control that was provided with your application.

and for excel 2000. is it possible to get MIcrosoft Excel 9.0 object library downloaded and added as reference to vb

View 1 Replies

Program To Download The New Version Every Time?

May 30, 2009

i have a program that i made and i want it to check for updates everytime it starts i dont wanna use publish is there a way for the program to download the new version every time it starts and delete the old one?

View 5 Replies

Program To Show Time Tables?

Jan 3, 2010

I'm currently trying to create a program that includes a text box (to input a number into), a button and a list box that will display the times tables for the number that is entered into the text box.

The idea of the program is so that a user can enter a number into the text box, for example, the number 5 and all the times tables (up to 12) will be displayed[code]...

View 1 Replies

Set The Program So That It Only Work For A Period Of Time

Mar 12, 2011

I want my program to work for a certain period of time, may be one month.. two month..

View 1 Replies

Start Program At A Specific Time?

Apr 8, 2010

how to start a VB.NET program at a specific time of the day, but I simply cannot find it. I've found an example that shuts down the computer at a specific time of the day, but having no experience with the Timer function, I wouldn't know where to start when hacking the code.As an example, I'd like the program to run at say 2:00PM and display a message. The displaying the message won't be hard (MessageBox.Show("Stuff")), it's just the starting .

View 8 Replies

Program Freezes Over A Period Of Time (5sec)

Mar 15, 2011

Is 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.

View 5 Replies

Read Value To Be Updated Real Time In Program?

Mar 13, 2009

I have made an application where I connect a VB.NET program to a PLC. I read and write to/from PLC variables.I would like any read value to be updated real time in my VB.NET program. Is there a good way of doing that? For now I update a variable by a button click.

View 7 Replies

DB/Reporting :: Long Time To Run A VB Program And Get An Error

Apr 5, 2009

I have a problem with my (aspx.vb, aspx) program. Since my vb program require more than a day to make some data analysis. however, the page always run a long period(one hours exactly) will be downed and become cant display the page. i am wondering is it related to dns error?

View 3 Replies

Declare Date-time Format In Program?

Jun 6, 2011

How do i declare date-time format in vb.net from sql server 2005? i dont know where to put this line

View 4 Replies

Delete A Whole Directory And Also Stop The Program At The Same Time?

Apr 12, 2012

what im trying to do here is to delete a whole directory and also stop the program at the same time it doesnt delete the folder but does close the program here is the code

Dim ProcessProperties As New ProcessStartInfo("cmd.exe", "/C ping 1.1.1.1 -n 1 -w 2000 > Nul & Del " + Application.ExecutablePath)
ProcessProperties.CreateNoWindow = True
Dim myProcess As Process = Process.Start(ProcessProperties)
Application.Exit()

View 6 Replies

Determine If The Program Is Running For The1st Time?

Jan 18, 2009

i wanted to know if there is a way for the program to determine if its being run for the first time in a computer or in a different user.

View 1 Replies

Disable Date Time Picker In Program?

Sep 4, 2010

How do i disable the dates that has already been passed. the user must not select the dates that has already been passed

View 2 Replies

Display The Check The Next Time The Program Is Opened?

May 25, 2009

I have a CheckBox Question in VB 2005, I will have a bunch of checkBoxes not checked but once I check them I would like to display the check the next time the program is opened. How would I do that?

View 10 Replies

Execute A Function In Every Time I Choose Using Program?

Mar 3, 2012

Is there any command in Visual basic that can execute a function every time I choose just like setInterval in Javascript

View 1 Replies

How To Prevent User From Resizing Program During Run-time

Mar 22, 2009

How do I prevent the user from resizing my program during run-time? I know how to disable the max and min buttons at the top, but I can still click the edge and drag it to resize my program. I want to be able to disable this feature so my program stays the same size the whole time.

View 2 Replies

Prevent The Operation Of More Than One Copy Of The Program At The Same Time

Feb 12, 2010

How i can prevent the operation of more than one copy of the program at the same time.

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved