Results 1 to 3 of 3

Thread: Reminder app.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Question Reminder app.

    This is my little neat reminder app.

    the codes:
    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Timer1.Enabled = False
            Exit Sub
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Timer1.Enabled = True
        End Sub
    
        Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
    
        End Sub
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    
            If DateTime.Parse(DateTimePicker1.Value).TimeOfDay <= Now.TimeOfDay Then
                Timer1.Enabled = False
                MsgBox(RichTextBox1.Text)
            End If
        End Sub
    End Class
    I want the program to say a sound when the time is there...

    - How do i do that?
    Attached Images Attached Images  

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Reminder app.

    Add a sound file to your application resources (Project menu -> Properties -> Resources tab)
    Then play it using the My.Computer.Audio.Play method. You can access your resources from the My.Resources property.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Re: Reminder app.

    Quote Originally Posted by Atheist View Post
    Add a sound file to your application resources (Project menu -> Properties -> Resources tab)
    Then play it using the My.Computer.Audio.Play method. You can access your resources from the My.Resources property.
    a little bit more description? im a noob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width