120 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for jonsan32

I'm hosting tounaments throughout the year, and have the price increasing each day. Code works, but I'mnot cure which elements to adjust to be able to display multiple prices adjusting simultaneously. I tried changing "rate" to "rate1" etc, but that wasn't enough... So I'm guessing variables within should be adjusted …

Member Avatar for Dani
1
147
Member Avatar for Sudo Bash

I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. …

Member Avatar for Yangang
0
4K
Member Avatar for gazbg84

Hi, I am having a Timer control like this: [CODE]asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" OnTick="Timer1_Tick"> </asp:Timer>[/CODE] In an UppdatePanel with AJAX enabled. So everything works fine to the point where on each refresh of the panel a JS is inserted in the header: [CODE]<script type="text/javascript">Sys.Application.add_init(function() { $create(Sys.UI._Timer, {"enabled":true,"interval":1000,"uniqueID":"Timer1"}, null, null, …

Member Avatar for joshhan
0
537
Member Avatar for xopenex

hello, Using Python 2.7, PyQt4, Qt Designer, and used pyuic4... I think thats it... windows 7? I have a GUI i created in Qt Designer. It has one button and one LCD number. I was trying to get the button to start and reset a timer, and have the elapsed …

Member Avatar for Ehtisham_1
0
3K
Member Avatar for farah ashikin

hi i just want to ask and ask your help . can you guys help to make timer in my quiz page. seriously i have no idea how to do it. plus im still new in this field around 7 month , so i dont know where to put the …

Member Avatar for farah ashikin
0
2K
Member Avatar for naz1234

hi, I am new to C programming. I want to program a running LED on my PIC24 (PIC24HJ256GP206) I have 5 LED on my PORT G and have input PORTB (RB0) My program should, if RB0 is grounded (I put jumper on my circuit) the LED will be running faster, …

0
183
Member Avatar for bdanie

I have a code for countdown timer and it works perfectly fine.. <html> <title>project prelim</title> <head> <script type="text/javascript"> var ss = 10; function countdown() { ss = ss-1; if (ss<0) { window.location="testover.html"; } else { document.getElementById("countdown").innerHTML=ss; window.setTimeout("countdown()", 1000); } } </script> </head> <body onload="countdown()"> <center> <table width="100%" height="600px" style="text-align:center;"> <tr><td …

Member Avatar for bdanie
0
6K
Member Avatar for CoderGuy101

Programming is such a customizable duty. I would like to ask some approaches (not solutions) to coding a program that has a GUI that functions as a cooking timer for hamburgers, steaks, cookies, etc. Call it reasoning or planning assistance for software development. I am having a tad bit of …

Member Avatar for JamesCherrill
0
147
Member Avatar for Papa_Don

Group, I'm trying to write some code that will read the clocktime. When it hits a predetermined time, I want it to run a routine. I know how to do this in VB.net. It would be done like this: Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick If …

Member Avatar for Santanu.Das
0
2K
Member Avatar for Dudestreet

Hi Team, So I am working on this project where I have 5 comboboxes that loads data from an .accdb file and Displays the result as per selection in a Text Box. I need to add Timers(as many as Required) to capture the Text-Box Data **"10 seconds After"** the fifth …

Member Avatar for Reverend Jim
0
217
Member Avatar for Papa_Don

Hello group! I've created a short program to open an application at a specific time. It's working but is attempting to open the application multiple times. What should I be doing to control the number of times it is opening? It only needs to open one time. Here's my code: …

Member Avatar for Papa_Don
0
303
Member Avatar for Nshark

I'm trying to set up a timer that counts up to ten and starts/resets when the left mouse button is clicked (anywhere on the screen even when the application is in the background). I'm struggling to find a code that suggests it is possible and now I am starting to …

Member Avatar for dionterry
0
5K
Member Avatar for patk570

Hey guys, I have a script that switches between tabs..It works perfectly, but what i am needing is a way for the script to stop when I have my mouse on the tab or content for the tab. I am using bootstrap and here is my [fiddle](http://jsfiddle.net/patk570/5hk6R/) with the working …

Member Avatar for Troy III
0
4K
Member Avatar for kjklls

hey guys, i'm currently working on a project, i have a tabbed panel and i've put a timer on the 1st tab panel. what i want to do is for the timer to remain enable even if i change tabs. what could i possibly do for this problem? thanks

0
142
Member Avatar for aryan.sen03

Hello friend i am developing a new web portal in this portal one thing is also one user is visible online for another user which a user is add friend list but issu is that i have a worked on logout but what i will do when user close a …

Member Avatar for M.Waqas Aslam
0
221
Member Avatar for MrNoobieCoder

I am an amateur python coder and i was wondering if it is possible to put a timer into my times table game and if possible where i could put it. Here's my code for my game help would be appreciated , thanks :) import random import time print ("Hello …

Member Avatar for woooee
0
299
Member Avatar for jatinmca

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UpdateTime(); } } protected void Timer1_Tick(object sender, EventArgs e) { UpdateTime(); } public void UpdateTime() { try { int hour = 00, min = 00, sec = Int32.Parse(Session["tleft"].ToString()); // min = Int32.Parse(Session["tleft"].ToString()) / TimeSpan span = new TimeSpan(TimeSpan.TicksPerSecond * sec); …

Member Avatar for Sathish_3
0
1K
Member Avatar for ManthanB

I want to maximize and minimize windows form on Timer Tick evebt. I placed the code this.WindowState = FormWindowState.Minimized; into the timer tick event. but actually its not working. Suggest me some code snippet for the same. Regards, Manthan

Member Avatar for Ketsuekiame
0
583
Member Avatar for archie.herbias

I want to do a down counter using 74ls193 .i want to start from 159 to 0 .my problem is that, i cannot make the second 7segment count from 9 to 0 because it always load 5.

Member Avatar for Assembly Guy
0
120
Member Avatar for ss125

Hello friends, I had done some questions regarding function call. I had done an console application that can run a particular set of code every minute. For that i used System.Threading.Thread.Sleep(60000); That worked well too. But now i stuck in another problem. Now I dont wanna use the above code.Because …

Member Avatar for ss125
0
272
Member Avatar for mesbahuk

I have java code that uses Java's `java.util.Timer.schedule()` method. **Method Description:** *The `schedule(TimerTask task,long delay,long period)` method is used to schedule the specified task for repeated fixed-delay execution, beginning after the specified delay.* public void schedule(TimerTask task,long delay,long period)java.util.Timer.schedule() Is there an equivalent method in C#? If NOT, how can …

Member Avatar for Momerath
0
486
Member Avatar for robotakid

Hey there! I'm currently trying to get my first text-adventure-game in python started,and I wanted to import some features that are totally unnecessary. just for the lulz. So,I want to start a timer,that starts when the game starts,and ends,when the player is dead or won the game. I want it …

Member Avatar for Gribouillis
0
720
Member Avatar for wolwayne

I am making an examination system desktop application in Java Swing. I have a frame named 'show_class_question' frame. This frame is used to display questions and four options from database. Whenever user clicks 'Next' button I am calling this same frame (show_class_question) again and agian from itself (self - refrencing) …

Member Avatar for stultuske
0
402
Member Avatar for Griff0527

Hello everyone. I am working on creating a stub that would allow me to swap out various sorting algorithms so that I can "plug in" the algorithms and run the various sorts. The below code is for Insertion Sort (yes, I know it is the slowest possible sort), but once …

Member Avatar for Griff0527
0
531
Member Avatar for yunniesshi

Hello generous java coders!I am really in a desperate situation now. I have a working gui code here: import java.awt.event.*; import java.awt.*; import javax.swing.*; public class CountdownTimer extends JFrame { JLabel promptLabel, timerLabel; int counter; JTextField tf; JButton button; Timer timer; public CountdownTimer() { setLayout(new GridLayout(2, 2, 5, 5)); promptLabel …

Member Avatar for IIM
0
2K
Member Avatar for boher

I need a solution for a small problem in my project and I'll make it as simple as possible: At one of the forms in my project, user should be able to add a panel to the form and that form should contain 2 controls ... a label and a …

Member Avatar for Reverend Jim
0
176
Member Avatar for sunil5

namespace play_stop { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button4_Click(object sender, EventArgs e) { timer1.Interval = 1000; timer1.Start(); Counter = 0; } public void circles() { Graphics g = panel1.CreateGraphics(); g.DrawEllipse( new Pen(Color.Red),panel1.Width / 2, panel1.Height / 2,75, 75); Graphics h = …

Member Avatar for Momerath
0
190
Member Avatar for durrat

hey i am new to gwt and i am doing an project on java and gwt and stuck in one part i want to create a reminder that is like user enters date and time and at that time a pop up should be displayed reminding user of his event.can …

Member Avatar for durrat
0
141
Member Avatar for candywayans

what is the code to make a timer to my program that basically times how long it takes students to complete a quiz, the timer starts and stops once the 15 questions in the quiz are answered twice , Thank You

Member Avatar for tinstaafl
0
223
Member Avatar for strungoutfan78

Hi all. I've taken a long break from my C++ studies but I'm now being shoved into finding an internship for school so I figured I'd play around and brush up on my coding. I've written this simple tabata countdown timer and I would like opinions on how it could …

Member Avatar for strungoutfan78
0
187

The End.