944,131 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2994
  • VB.NET RSS
Jun 4th, 2007
0

using sound as reminder

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dumes2 is offline Offline
2 posts
since May 2007
Jun 5th, 2007
0

Re: using sound as reminder

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.
VB.NET Syntax (Toggle Plain Text)
  1. My.Computer.Audio.Play(Filename, AudioPlayMode.WaitToComplete)
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Open Excel Sheet in Vb.net
Next Thread in VB.NET Forum Timeline: encrypt and decrypt query string





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC