using sound as reminder

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2007
Posts: 2
Reputation: dumes2 is an unknown quantity at this point 
Solved Threads: 0
dumes2 dumes2 is offline Offline
Newbie Poster

using sound as reminder

 
0
  #1
Jun 4th, 2007
I am trying to write an application which require to play sound when the reminder comes up, but i'm only able to use text and colour bet is not working with sound.The code attached is written in a timer tick event and i will appreciate it if someone can help on this.

For I As Integer = 0 To DetailsTable.Rows.Count - 1
curtime = DetailsTable.Rows(I)(0)
newtime1 = DetailsTable.Rows(I)(0)
todayalarm = DetailsTable.Rows(I)(2)
If anotime = curtime And alarmdate = todayalarm Then
Me.Hide()
myform14.Show()
ElseIf anotime = newtime2 Then
Me.Hide()
myform14.Show()
End If
'MessageBox.Show(newtime3)
Next
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: using sound as reminder

 
0
  #2
Jun 5th, 2007
I don't see where you are trying to play your sound but if you are using vb express 2005 then use this to play sound.
  1. My.Computer.Audio.Play(Filename, AudioPlayMode.WaitToComplete)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC