Simple alarm Clock using Visual Basic.Net


Simple alarm Clock using Visual Basic.Net

This is tutorial is all about Simple alarm Clock using Visual Basic.Net
In this tutorial, we’re going to create a simple alarm clock. This alarm clock can be used to wake a person at a specific time. To start with this application, open visual basic and create a new project and name it as “Alarm Clock”. The application when finished, it looks like as shown below.

simple clock

Next, add five labels, and name the label1 as “lblcurtime” and label2 as “lblstatus” then,set the text property of the other label as “Current Time”, “Alarm Time” and “Message”. Add a Datetimpicker, then set it into “Time” format. Then add a textbox and a Button, after this rename the textbox1 as “txtmsg” and the button1 as “btnsetalarm”. And lastly add two timer.

This time, we will add functionality to our application.

First, double click the “timer1” and add the following code:

This code will simply check if the current settings of DateTimePicker1 match the Time of the day and the time is based on your local machine. So if match, it performs the following statements.


Then, double click the “timer2” and add the following code:

This will display the current time based on the local machine.


Next on the “form1_load” add the following code:


And finally, on the “btnsetalarm” button add the following code:

It enables the timer1 and set the alarm clock.


This time you can now try testing your program by pressing “F5”.


Readers might read also:


If you have any questions or suggestions about this Simple Alarm Clock using Visual Basic.Net source code, please feel free to leave a comment below.

Looking for more source code? Type your keyword here here!


  1. Its good to have someone as seasoned as you in order to assist us when we get stuck. Im using visual basic 2008 express edition . I have been trying to validate empty textboxes (5) and a button in a form. I would like to force the user to fill all textboxes before clicking the button. I have tried if statements but that doesn’t solve the problem. I would like a code that would group all the textboxes.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.