9,866,691 members (31,482 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
202 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 5
Page Size:
10
·
25
·
50
Tag filtered by: time
[x]
OTP (One Time Password) Demystified - Part 1
by
orouit
Article
13 May 2013
license:
CPOL
This article shows how an OTP generator works.
General Programming
»
Cryptography & Security
»
General
C#
Intermediate
time
password
Threading Timer Data Access Problem
by
AhmedYehiaK
Question
8 May 2013
license:
CPOL
Hi everyone :),I have a n-tier desktop application and i have a dll that referenced on all the tiers which hold a current login user details and i have a case that i used a Threading.Timer and when the timer run open a form in a specific case, in the opened form i can't access the shared...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
Threading
Access
Application
time
Multi
multithreading
Desktop
problem
Java Timer in For Instruction
by
TorstenH.
Answer
30 Apr 2013
license:
CPOL
your are initalizing the Timer object again and again!Take it completly into the loop. I would also extend it with a custom object adding a name/identifier attribute to the Timer:public class MyTimer extends Timer{ private final strID; // final -> has to be set by...
General Programming
»
Uncategorised Quick Answers
»
General
Java
For
time
array
Java Timer in For Instruction
by
nameJulian
Question
30 Apr 2013
license:
CPOL
Hello there, I want to ask you people a question. Can a java timer be initialized in a for loop? So that the timer will once run once with a value taken from an ArrayList. Something like the idea bellow: void myTimerMethod(){ int size=ArrayList.getSize(); Timer...
General Programming
»
Uncategorised Quick Answers
»
General
Java
For
time
array
C: Time format in Arrays
by
H.Brydon
Answer
22 Apr 2013
license:
CPOL
The app you are using is very badly formed (or if you wrote it, you should rewrite it).Really the only way to do this properly is to convert the times to number of seconds (even if the elapsed time is years, weeks, days, hours, minutes or already seconds) and then you can do all the...
General Programming
»
Uncategorised Quick Answers
»
General
C
time
programming
arrays
C: Time format in Arrays
by
Owen 'Junior' Watson
Question
22 Apr 2013
license:
CPOL
Hi guys!I am trying to create an array that stores 4 lap times, for example:Double arrayName[4] = {1.40, 1.45, 1.32, 1.20};Then I need to add all these figures together and produce a total, average, fastest etc.My problem is, they are not calculated as time, but as floating point...
General Programming
»
Uncategorised Quick Answers
»
General
C
time
programming
arrays
How do you check if DateTime is initialized?
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
Little code snippet about timer. Hope that help. Timer timer; int secondsToPlay; private void StartPlay_Click(object sender, EventArgs e) { timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
DateTime
time
How do you check if DateTime is initialized?
by
Maciej Los
Answer
17 Apr 2013
license:
CPOL
You need to use Timer[^]Examples:http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/43daf8b2-67ad-4938-98f7-cae3eaa5e63f/[^]http://www.dotnetperls.com/timer[^]http://forum.codecall.net/topic/65434-c-working-with-timers/[^]Microsecond and Millisecond C# Timer[^]All about...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
DateTime
time
How do you check if DateTime is initialized?
by
- NA -
Question
17 Apr 2013
license:
CPOL
I need help with making a code that checks every second if Datetime is started. If it is started it should close the already running function. I know dispatchertimer but I want it to run the thread in background. The reason is because I have a mediaplayer that plays till datetime is started,...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
DateTime
time
Microsecond and Millisecond C# Timer
by
ken.loveday
Article
14 Apr 2013
license:
CPOL
MicroTimer: A microsecond and millisecond timer in C# that is used in a similar way to the .NET System.Timers.Timer.
Languages
»
C#
»
Utilities
C#
Windows
.NET
Dev
Intermediate
time
performance
How do I display only the time in asp.net?
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
as you just need to display time and you have asp.net page which gives you the flexibility of code behind model so you can use form load part of serverside code and simply write the followingProtected void Form_Load(object sender,EventArgs...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
time
How do I display only the time in asp.net?
by
André Kraak
Answer
13 Apr 2013
license:
CPOL
Use the DateTime.ToString[^] method.You can use the Standard Date and Time Format Strings[^] to get the time: DateTime.Now.ToString( "T" ) or the Custom Date and Time Format Strings[^]: DAteTime.Now.ToString( "HH:mm:ss" )
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
time
How do I display only the time in asp.net?
by
Imperfection
Question
13 Apr 2013
license:
CPOL
This is the code I have now:Sub Page_Loadlbl1.Text="The date and time is " & now ()End SubI want to modify & now to display only...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
time
Calculating time difference in sound input from multiple microphones
by
CPallini
Answer
12 Apr 2013
license:
CPOL
Roughly speaking, I would first normalize the amplitude of the two graphs and then time-translate one of them until best superposition is reached.
General Programming
»
Uncategorised Quick Answers
»
General
C#
time
audio
Calculating time difference in sound input from multiple microphones
by
Gettor9000
Question
12 Apr 2013
license:
CPOL
I have a C# project that takes multiple (2 at the moment) microphones as an audio devices, detects sound from them, processes their audio frames with Fourier Transform and displays them. It also prints them in three colors: red is for microphone that has stronger input, green is for microphone...
General Programming
»
Uncategorised Quick Answers
»
General
C#
time
audio
C# WPF Application Scheduling Future Time and Date
by
Sergey Alexandrovich Kryukov
Answer
1 Apr 2013
license:
CPOL
No, if you simply need to track elapsed "real" time, use System.Diagnostics.Stopwatch:http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx[^].This is the most accurate way of measuring time available.As I cannot be sure I really can understand the scenario and the...
General Programming
»
Uncategorised Quick Answers
»
General
WPF
Application
time
TimeSpan
C# WPF Application Scheduling Future Time and Date
by
Temilola
Question
1 Apr 2013
license:
CPOL
I am needing help creating a WPF application where the user schedules a DATE in the future and a TIME in the future to where it will then call some method or do something else like go invisible. I am not concerned with what it does after the interval is set. I have all the needed functionality...
General Programming
»
Uncategorised Quick Answers
»
General
WPF
Application
time
TimeSpan
WPF Dispatcher = Windows Forms Timer class
by
Sergey Alexandrovich Kryukov
Answer
1 Apr 2013
license:
CPOL
You should never try to use System.Windows.Forms.Timer with WPF, and almost never even with Forms. The accuracy of this timer is prohibitively bad for most applications. There are (at least) three more timer types you can...
General Programming
»
Uncategorised Quick Answers
»
General
WPF
time
Forms
TimeSpan
Dispatcher
WPF Dispatcher = Windows Forms Timer class
by
Temilola
Question
1 Apr 2013
license:
CPOL
I am needing help with the dispatcher class from WPF and would like it to function much like the Windows Forms Timer class example below. To see the Windows Form Application it would require you to copy the code into a new WForms app and place the code in a Form1.cs file. In the Form 1...
General Programming
»
Uncategorised Quick Answers
»
General
WPF
time
Forms
TimeSpan
Dispatcher
Maniputing time with C++
by
Volynsky Alex
Answer
26 Mar 2013
license:
CPOL
For example you can try to settle it, by following way:#include #include int main(){ time_t your_time = .... struct tm your_time_tm = *localtime( &your_time); struct tm then_tm = your_time_tm; then_tm.tm_sec += 100; mktime(...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
Linux
time
Maniputing time with C++
by
Stefan_Lang
Answer
21 Mar 2013
license:
CPOL
1. Convert the string to hours, minutes and seconds2. combine these three numbers to calculate the total number of seconds3. Add 804. Split up the resulting value back to hours, minutes and seconds5. convert that back to string.There may be shortcuts or faster ways of doing this, but...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
Linux
time
Maniputing time with C++
by
bunge-bunge
Question
21 Mar 2013
license:
CPOL
hI..I got a very simple question..i got my current time in "HH:MM:SS"formathow i 'm going to calculate the new time if i got a new value in second format.for example, my current time now is 16:36:30. I got 80 second and need to add this value to my current time.What is the simply way...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
Linux
time
Wcf sample project in c#4.0
by
ayyanan
Answer
19 Feb 2013
license:
CPOL
Can any one send sample wcf project with some real time code and architecture of the project...
General Programming
»
Uncategorised Quick Answers
»
General
WCF
architecture
time
Code
Project
How to calculate two different time in C#
by
vinodkumarnie
Answer
14 Feb 2013
license:
CPOL
If you choose to use the TimeSpan, be aware about the Days part:TimeSpan t1 = TimeSpan.Parse("23:30");TimeSpan t2 = TimeSpan.Parse("00:40:00");TimeSpan t3 = t1.Add(t2);Label1.Text = t3.ToString(); //to bind to labelConsole.WriteLine(t3); // 1.00:10:00With DateTime:DateTime d1...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
time
How to calculate two different time in C#
by
CS2011
Answer
14 Feb 2013
license:
CPOL
If you mean adding two dates this will help System.DateTime today = System.DateTime.Now;System.TimeSpan duration = new System.TimeSpan(36, 0, 0, 0);System.DateTime answer = today.Add(duration);System.Console.WriteLine("{0:dddd}", answer);you can find more details about this in...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
time
How to calculate two different time in C#
by
Manoj Chamikara
Question
14 Feb 2013
license:
CPOL
How to calculate two different time in C# (windows)Ex- Time 1 - 11:10:40Time 2 - 00:12:10Sum - 11:22:50Thank in advance
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
time
How to save values to Database with current Time.
by
milenalukic
Answer
20 Jan 2013
license:
CPOL
Hi,For consistency I would assume you require the server time and not the client pc time.All you need to do is set the Time on your table with a default of Getdate().In this way you don't pass any value on insert.
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
time
How to save values to Database with current Time.
by
milenalukic
Answer
20 Jan 2013
license:
CPOL
Hi,For consistency I would assume you require the server time and not the client pc time.All you need to do is set the Time on your table with a default of Getdate().
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
time
How to save values to Database with current Time.
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Here you are passing only session values.string query = "insert into Table_1(SensorValue,Time) values(" +hexValue+ "," +DateTime.Now.ToString("HH:MM:ss")+")";Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
time
How to save values to Database with current Time.
by
ontheline89
Question
16 Jan 2013
license:
CPOL
I am saving values to a database but I am not able to save them with current Time. I have created a colume with name Time in database, but dont know how to save time. SqlConnection sqlconn = new SqlConnection("Data Source=AAN-PC;Initial Catalog=latestsensordata;Integrated...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
time
How to save values to Database with current Time.
by
asifiqbaljh
Answer
16 Jan 2013
license:
CPOL
i think this will help You.. SqlConnection sqlconn = new SqlConnection("Data Source=AAN-PC;Initial Catalog=latestsensordata;Integrated Security=True"); SqlDataAdapter sa = new SqlDataAdapter(); string CurrntTime =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
time
How to save values to Database with current Time.
by
bapu_reddy
Answer
16 Jan 2013
license:
CPOL
Pass the value datetime.now() value to time. Then it inserts a value along with current time.
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
time
Function takes 1:30 mins to 2 hours to execute in SQL SERVER 2008
by
Member 7755670
Question
9 Jan 2013
license:
CPOL
Hi,The function below takes a very long time nearly 2 hours to execute. Can any body tell how to optimize this function?? Or how can we re-write this function without using Cursors??I tried SQL Profiler and Tuning also but of no help.Please help me get out of this.SET...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
time
functions
utc_offset conversion from "-hhmm" to "-hh:mm:ss"
by
Christian Graus
Answer
6 Jan 2013
license:
CPOL
Just output a :00 at the end, given that you don't have any info for seconds.Oh, I see. I assume you're string mashing, so use the Substring method to get the parts you need and insert the : and :00 you need.
General Programming
»
Uncategorised Quick Answers
»
General
C#
DateTime
time
utc_offset conversion from "-hhmm" to "-hh:mm:ss"
by
- NA -
Question
6 Jan 2013
license:
CPOL
Hi guys,I need help converting an UTC offset specified in the format "-hhmm" to "-hh:mm:ss" format. for Example, if my UTC offset is "-0530", the output format should be "-05:30:00"Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
DateTime
time
Function takes 1:30 mins to 2 hours to execute in SQL SERVER 2008
by
Mehdi Gholam
Answer
5 Jan 2013
license:
CPOL
Run the code in SQLProfiler and have it create indexes for you.http://msdn.microsoft.com/en-us/library/ms181091.aspx[^]http://www.datasprings.com/resources/articles-information/sql-server-2008-profiler-and-tuning-wizard[^]
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
time
functions
A signature is not valid in iTextSharp
by
Zoltán Zörgo
Answer
26 Dec 2012
license:
CPOL
Is the signer root certificate installed in windows? Is the Windows Certificate store trusted by the Pdf viewer? Supposing Acrobat, see this article: http://blogs.adobe.com/security/2008/08/setting_signature_trust_in_ado_2.html[^] (the settings described there are still valid)
General Programming
»
Uncategorised Quick Answers
»
General
time
signature
itextsharp
A signature is not valid in iTextSharp
by
janprasil
Question
26 Dec 2012
license:
CPOL
Hello,I got a VB.NET script which makes a PDF document signed. It means - insert a signature and a timestamp. But the final document is not verified and it shows that the signature is not valid: "this document has been altered or corrupted"Here is the code:certificateData =...
General Programming
»
Uncategorised Quick Answers
»
General
time
signature
itextsharp
Countdown Timer in C# for Metro App ?
by
calincoosmin
Answer
15 Dec 2012
license:
CPOL
I found the solution to my problem.void t_Tick(object sender, object e) { TimeSpan ts = endtime.Subtract(DateTime.Now); string countdowndays = ts.Days.ToString(); daytxtblk.Text = countdowndays; string countdownhours =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
time
TimeSpan
Metro
Stopwatch
Counters
app
Countdown Timer in C# for Metro App ?
by
calincoosmin
Question
12 Dec 2012
license:
CPOL
Hello, i need to build an app that use a countdown (Years, Days, Hour, Minutes, Seconds). I've tried to write a code and i succeed to calculate the time, but when i try to put this time as a string in a texblock, he is not updating. Can anyone help me to set the textblock to update himself ?...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
time
TimeSpan
Metro
Stopwatch
Counters
app
What's the best way to temporarily persist results of a long running SP?
by
Ankur
\m/
Answer
22 Nov 2012
license:
CPOL
Some suggestions:You may want to review the indexes on the tables used if the select is too slow. With proper indexes, even millions of records are returned in a few seconds.Secondly, you may want to reduce the amount of data that is returned if that is to be displayed to the user. As you...
General Programming
»
Uncategorised Quick Answers
»
General
time
performance
TSQL
Data
StoredProcedures
SMS Send at Particular Time using asp.net
by
@AmitGajjar
Answer
17 Aug 2012
license:
CPOL
Hi,Hopeful...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
time
sms
SMS Send at Particular Time using asp.net
by
Jeeva G
Question
17 Aug 2012
license:
CPOL
Hi alli sent the sms using asp.net . but particular time the message need to send . and Checking the particular time automatically and send sms.Thanks & Regards,Jeeva
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
time
sms
How to create events on Design time on C#?
by
thoahn
Question
31 Jul 2012
license:
CPOL
i must create a keypress event on design time. how can i do this??? i want to make an event which should be handled without starting debugging. i mean i created an user control and when i press F1 key, it will open a help file about the control on Form1[Design].
General Programming
»
Uncategorised Quick Answers
»
General
C#
Design
time
Events
WinForm
How to create events on Design time on C#?
by
Tadit Dash
Answer
31 Jul 2012
license:
CPOL
Please go through the links below to know the implementation of KeyPress Event.how to use keypress events[^].Keyboard Event Handling: onkeypress[^].
General Programming
»
Uncategorised Quick Answers
»
General
C#
Design
time
Events
WinForm
How to create events on Design time on C#?
by
OriginalGriff
Answer
31 Jul 2012
license:
CPOL
Depends: if you are talking about adding an event to your class that users of your class can handle, then it's pretty easy - just add the code: /// /// Event to indicate [Description] /// public event EventHandler Name; /// /// Called to...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Design
time
Events
WinForm
Create a timer and notification
by
Blake Miller
Answer
24 Jul 2012
license:
CPOL
Can't speak for Linux, but on Windows you can look into _gmtime_s and time and difftime Look in MSDN under the topic "Time Management".
General Programming
»
Uncategorised Quick Answers
»
General
C++
time
Wcf sample project in c#4.0
by
GanesanSenthilvel
Answer
7 Jul 2012
license:
CPOL
Good WCF project approach is described in the CodeProject at WCF Service Library: A Good Approach for WCF Service Application[^]
General Programming
»
Uncategorised Quick Answers
»
General
WCF
architecture
time
Code
Project
Wcf sample project in c#4.0
by
mahesh.b.p.c
Question
7 Jul 2012
license:
CPOL
Hi Friends Can any one send sample wcf project with some real time code and architecture of the project...With some real time scenario's .........mahesh.b.p.c
General Programming
»
Uncategorised Quick Answers
»
General
WCF
architecture
time
Code
Project
Create a timer and notification
by
Member 8238193
Question
4 Jul 2012
license:
CPOL
How to create a timer from system date to a specified date and reverse counter of time to the notify a message on a new window?( on linux & windows )Thanks.
General Programming
»
Uncategorised Quick Answers
»
General
C++
time
Page 1 of 5
1
2
3
4
5
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web02 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid