Uploaded by kg4bga on Sep 8, 2009
Make your alarm clock talk. This is just a simple alarm clock program in Visual Basic 2008 that will read the message that you type into the settings tab. Here is the code.
Clock Form
Public Class Form1 Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick Label1.Text = TimeOfDay + " " End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If TimeOfDay = Label2.Text Then Dim SAPI SAPI = CreateObject("sapi.spvoice") SAPI.Speak(TextBox2.Text) End If End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label4.Text = DateString End Sub Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click settings.Show() End Sub
End Class
Settings Form
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Form1.ControlBox = True End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Form1.ControlBox = False End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Me.Close() End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Form1.Timer1.Stop() Form1.Label2.Hide() End Sub Private Sub settings_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub
End Class
Category:
Tags:
License:
Standard YouTube License
-
2 likes, 0 dislikes
4:57
Visual Basic 2008 - Talking Programby VBDotNetTuts1,428 views
2:11
Visual Basic 2008-Alarm Clockby haws12902,481 views
9:59
Visual Basic MusicPlaying Alarm Clockby willgrana2,166 views
8:07
vb 2008 make an alarm that can shutdown, restart, and logoff your systemby phapmai1641,303 views
8:44
Visual Basic 2008 Alarm clockby 10Iceman0147,770 views
4:49
How to Make a advanced progressbar in visual basic 2008by iWISHinfected93,713 views
10:55
How to draw a bitmap and save it [vb 2008/.NET]by jnbjabnk3,480 views
0:35
Mosque alarm clock from Muscat Muezinby boereboere13,460 views
9:49
Vb.net 2008 Alarm Clock Very simple Part 2/2by ilanc271,223 views
6:40
Alarm Clock Visual Basic 2010by VisualTFP1,834 views
1:08
Visual basic on Alarm clock with system tray iconby tohcw90623 views
9:10
VB 2008 - Alarm Clock 7.0by evilboss1996779 views
8:19
Making an Alarm Part 2/2 (Visual Basic 2008)by ferna2294468 views
3:54
VB 2008 - Alarm clockby evilboss1996857 views
3:03
Visual Basic 2008 Analog Clock Tutorialby jimbobwilikers2,979 views
7:21
MP3 Alarm Clock - VB 2008by CoDxPIMPx3,555 views
5:01
Vb.net 2008 Alarm Clock Very simple Part 1/2by ilanc271,129 views
7:16
Visual Basic 2008 Login Systemby r3miXWtF7,810 views
3:25
VB.NET - An Intelligent and Resposive Talking Program - Roylyn Andrewsby UserIsAnFBIAgent6,224 views
7:22
Visual Basic 2010 - Alarm Clock Tutorialby MutatedGamer1,037 views
- Loading more suggestions...
Link to this comment:
Video Responses
All Comments (0)