Friends, I made a small calculator in a form.It works well. On the form there is an Exit Button to close the form. Now I want this task.If I keep the calculator on the form (Computer) idle for 60 seconds the form must be closed automatically / If I goes on clicking some or other button on the calculator the form should not be closed (until 60 seconds completed after the last button click) Any body please help me. Thanks in advance

Member Avatar
Member Avatar
+0 forum 2

Hi DW community. I had an unusuall fix made the other day for one service and wanted to find out exacly what happened. The situation was the following: For this one specific ADS channel, the communication works this way: The hotel reservation is sent via $_POST['RES_DATA'] , and after the reservation is parsed, we need to send (echo ) the simple xml response including echo token sent in the reservation xml with PROCESSED value, in order to confirm the that we have received the reservation. If the response is not sent towards the server that is sending the reservation it …

Member Avatar
Member Avatar
+0 forum 1

Good day everyone - Since this is my first post, I must say hi. I just started learning Python 8 hours ago and I like to challenge myself, so following a guide on playing with files, I decided to make a program that would open a .txt and it would create a backup and save to that backup in real time. **Problems - 1) CTRL+S won't do the trick, it'a mess - It could work very well if ran as daemon and only on that specifical window 2) - I wish for the script to stop running when notepad.exe, actually …

Member Avatar
+0 forum 0

I am fairly new to Pascal and I have been attempting to write a hangman game. I am aware that there are probably so many better ways to do this than I have done but I am having some problems where the exit variable is not met because the current variable has a 1 appended to it. As far as I can tell I have not initialised it with a 1 nor can I find anywhere that would append this 1. It is incredibly frustrating and I am completely stumped. Any help would be greatly appreciated. Program Hangman; Procedure Play; …

Member Avatar
Member Avatar
+0 forum 1

I have a email script that sends out information from the mysql database with the following code, but it only sends out one name and ID, but in the email it should send all 20 names and IDs. My question how can I get this fix and working right. Thanks for any help. //retreive questions from database and put into question box $query2 = "SELECT `studentID`,`studentName` FROM `quiz1question`"; $question2 = mysql_query($query2); while($row = mysql_fetch_array($question2)){ $studentName = $row['studentName']; $studentID = $row['studentID']; $msg .= '<p>Student Name: '.$studentName.' or Student ID: '.$studentID.'</p>'; // ------------------------------------------------------------ $to = "cc-wp@hotmail.com"; $subject = "CT-80 Quiz/Test Results"; $from …

Member Avatar
Member Avatar
+0 forum 9

If a child process encounters exit(0) statement, where is this exit status returned in the parent process? Is there any variable associated with every process that holds this information? If not, how do children and parent processes communicate?

Member Avatar
Member Avatar
+0 forum 2

How can I terminate resources in a safe way when JFrame is about to close? - If I put terminate() in the a finally block it runs before windowClosing(). - If I put terminate in windowClosing() it can't be accessed from an inner class. I am aware that I shouldn't use finalize(), but I don't know from where (and how) should I call my terminate() method. Is there an "official" way to **close a JFrame with windowClosing() and do some tasks** (save data, close streams) **before** the program **exits**? **Where should I put my terminate() method?** public class Test extends …

Member Avatar
Member Avatar
+0 forum 2

How do you exit a VB form using a messagebox prompt?

Member Avatar
Member Avatar
+0 forum 1

I am new to writing C# programs, actually new to object oriented programming. I normally write programs in PICK. But I have a software package that will call a pre-processor to allow us to modify a text file before it processes a the file from a 3rd party. I have the process working as a stand alone program, but when calling it through the pre-processor it needs to recieve a value back before it will continue the process. I am trying to pass back a "0", but the pre-processor isn't recieving anything. Can anyone give me a hint as to …

Member Avatar
Member Avatar
+0 forum 5

hello everybody [CODE]void func1(){ // do something //exit the function if some error occurs (like segmentation fault) but continue running the rest of the program } void func2(){ //do something //exit the function if some error occurs (like segmentation fault) but continue running the rest of the program } int main(){ func1(); func1(); } [/CODE] Ok for the above program, if any error (such as segmentation fault) occurs in func1, i want the function to end but continue running the rest of the program (i.e func2). I have used exit() and return 0, but not working. HELP!!!

Member Avatar
Member Avatar
+0 forum 5

I was just wondering how exit worked? Does it use some lower-level language feature in its implementation? Is it compiler-specific? What is it? (I am talking about the function in stdlib.h btw)

Member Avatar
Member Avatar
+0 forum 4

hi. soo i got this codes off of some site. its for a cool form entry and exit effect. but since im using this in my project i need to know what this lines of codes mean. and i mean every line. the site where i got it from doesnt offer this info which i need. im hoping that you guys could help me out with this. i need to explain every line of code in class. you will need : 2 timers for this. first timers set to true. the others false. each with 15 interval. heres the code. …

Member Avatar
Member Avatar
+0 forum 2

i want to go back to main menu while hitting escape key in my programme. for that i have make a function. [CODE]void exit (char[]) { if(char==27} { exit(0); } } [/CODE] but i have many user inputs which are of type int,float,char..... so i have tried, [CODE]while(kbhit!=27) { //coding }[/CODE] but after pressing ESC key nothing is done

Member Avatar
Member Avatar
+0 forum 25

I am using Visual Studio 2010 I have multiple forms and when I hit close button(red X, top-right) from any form, i want the project to close entirely. Now when I do this, this does not happen by default. I always have to click on the 'stop' button in VS for it to close. Any quick solution or a piece of code to be inserted in every form will do. Thank you :)

Member Avatar
Member Avatar
+0 forum 6

I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But when I am using "[B]return 0[/B]" in place of [B]exit(0)[/B] , program keeps on executing and each time a new process is created infinitely. output :- Before fork I am a child My name is parent child PID=> 23143 kValue => 2 Before fork I am a child My name …

Member Avatar
Member Avatar
+0 forum 4

[QUOTE]unhandled exception has occurred in your application if you click continue exit automatically[/QUOTE] How do I make it just exit without even warning the user? I've tried the "try" function. However, if you hex edit a certain peace of code it will come up anyways. I want to totally get rid of the debugging process no matter what and it will not inform the user.

Member Avatar
+0 forum 0

I am trying to figure out how to automatically close a simple windows application in C. I know how to create the window. But I have no idea how to get it to automatically close when it has opened without user input/interaction. Basically when it is called upon, I want it to close again. Thanks

Member Avatar
Member Avatar
+0 forum 2

The End.