Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: Making all columns text when using Microsoft Text Driver(*.txt, *.csv) Pin
Wendelius6-Dec-08 8:27
mentorWendelius6-Dec-08 8:27 
GeneralRe: Making all columns text when using Microsoft Text Driver(*.txt, *.csv) Pin
Mycroft Holmes6-Dec-08 23:15
professionalMycroft Holmes6-Dec-08 23:15 
GeneralRe: Making all columns text when using Microsoft Text Driver(*.txt, *.csv) Pin
Sunset Towers6-Dec-08 23:30
Sunset Towers6-Dec-08 23:30 
QuestionTesting C# with xUnit Pin
Jammer6-Dec-08 5:33
Jammer6-Dec-08 5:33 
QuestionC# serial Port Pin
Karmendra Suthar6-Dec-08 5:05
Karmendra Suthar6-Dec-08 5:05 
AnswerRe: C# serial Port Pin
Wendelius6-Dec-08 5:41
mentorWendelius6-Dec-08 5:41 
Questionmaking alarm Pin
Xmen Real 6-Dec-08 4:48
professional Xmen Real 6-Dec-08 4:48 
AnswerRe: making alarm [modified] Pin
Alan N6-Dec-08 10:12
Alan N6-Dec-08 10:12 
Hi,
You are just being far too specific in your comparison. Just compare the DateTime values, i.e. the date and the time of day.

Something like this:

//Calculate time and date at the end of the desired period, 1 hour in this example
DateTime EndTime = DateTime.Now.AddHours(1);

//in TimerTick event
if (EndTime.CompareTo(DateTime.Now) < 0){
  //Code
  MessageBox.Show("Came");
}


[EDIT: My initial code fragment was rubbish. It make sense now! ]
Alan.

modified on Sunday, December 7, 2008 5:28 PM

GeneralRe: making alarm Pin
Xmen Real 6-Dec-08 14:29
professional Xmen Real 6-Dec-08 14:29 
AnswerRe: making alarm Pin
Wendelius7-Dec-08 0:12
mentorWendelius7-Dec-08 0:12 
GeneralRe: making alarm Pin
Xmen Real 7-Dec-08 1:53
professional Xmen Real 7-Dec-08 1:53 
GeneralRe: making alarm Pin
Wendelius7-Dec-08 2:43
mentorWendelius7-Dec-08 2:43 
QuestionBorder Of Group Box Pin
nagendra.vk6-Dec-08 4:10
nagendra.vk6-Dec-08 4:10 
AnswerRe: Border Of Group Box Pin
Xmen Real 6-Dec-08 4:53
professional Xmen Real 6-Dec-08 4:53 
GeneralRe: Border Of Group Box Pin
#realJSOP6-Dec-08 23:24
mve#realJSOP6-Dec-08 23:24 
GeneralRe: Border Of Group Box Pin
Xmen Real 6-Dec-08 23:26
professional Xmen Real 6-Dec-08 23:26 
AnswerRe: Border Of Group Box Pin
#realJSOP6-Dec-08 23:26
mve#realJSOP6-Dec-08 23:26 
QuestionHow to let the application work with plugins? Pin
softwarejaeger6-Dec-08 4:06
softwarejaeger6-Dec-08 4:06 
AnswerRe: How to let the application work with plugins? Pin
Marcelo Emmerich7-Dec-08 6:27
Marcelo Emmerich7-Dec-08 6:27 
GeneralRe: How to let the application work with plugins? Pin
softwarejaeger9-Dec-08 20:02
softwarejaeger9-Dec-08 20:02 
GeneralRe: How to let the application work with plugins? Pin
softwarejaeger10-Dec-08 1:04
softwarejaeger10-Dec-08 1:04 
Questionerror opening excel sheet in c# Pin
emilio_ts6-Dec-08 3:32
emilio_ts6-Dec-08 3:32 
AnswerRe: error opening excel sheet in c# Pin
Wendelius6-Dec-08 3:53
mentorWendelius6-Dec-08 3:53 
GeneralRe: error opening excel sheet in c# Pin
emilio_ts6-Dec-08 3:59
emilio_ts6-Dec-08 3:59 
GeneralRe: error opening excel sheet in c# Pin
Wendelius6-Dec-08 4:30
mentorWendelius6-Dec-08 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.