Blue Theme Orange Theme Green Theme Red Theme
 
Team Foundation Server Hosting
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
Search :       Advanced Search »
Home » Blogs Home » Blog Detail

Alarm Application

 by Sriram Ramani on Oct 27, 2009

I have Described a simple C# application for Alarm . . .or a reminder
Comments: 1 Views: 6359 Printable Version 
Hi Guys , I have posted this article to explain about a simple alarm application Place a label to display today's datetime , 3 text boxes for hh mm ss , 2 radio buttons for Alarm on or off and a button. Done in C#.net Code is . . . using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Boolean alarm = false; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { label1.Text = DateTime.Today.ToString("yyyy:mm:dd hh:mm:ss"); } private void button1_Click(object sender, EventArgs e) { label1.Show(); timer1.Enabled = true; } private void timer1_Tick(object sender, EventArgs e) { DateTime dat = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text), Convert.ToInt32(textBox3.Text)); String AlarmTime = dat.ToString(); if(DateTime.Now > dat && alarm) { PlayAlarm()-----> any media player control or u can give as My.computer.audio.play(filename) } } private void radioButton1_CheckedChanged(object sender, EventArgs e) { alarm = true; } private void radioButton2_CheckedChanged(object sender, EventArgs e) { alarm = false; } } }
Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
 
What do you say about this post? Post a comment here
*Title:
*Comment:
 

Hi by Nikhil Kumar On Jan 14, 2010
I have something about 70-536 ,
i am at :ignitesofthelp@gmail.com

6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor

 Blogger's Profile
Age: 25
Location:
Title: Developer
Joined: Feb 01, 2009
Education: Bachelors Degree
 More Blogs from this Blogger
Alarm Application
View all »
 Latest Blogs
[Video] OnClose Handler
[Video] Storing and Loading the Window and Toolbar position
The Euclidean Algorithm
Swapping Exe Process
How Exe file is Generated by VS2005 C++ Project?
What is Exe
Header files: Multiple Inclusion problem - Solution B
Header files: Multiple Inclusion problem - Solution A
Header files: Multiple Inclusion problem - Reason
Header files: Multiple Inclusion problem
View all »
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.