I am a beginner in visual studio and i don't have any experience in programming .I want to create a DTMF generator using visual studio . I already made the GUI using drag and drop function . So i want add functions to that button . Button work's like a ON/OFF Switch . When i press the button i want to play a wave tune inside the application . How can i do that ?

Hi sanus, welcome to DaniWeb. Think you posted in the wrong forum.
But for an answer anyway,Click Here

Thanks .

 Dim sPath As String
        Dim mysound As Media.SoundPlayer

        sPath = "yourfilelocation"
        mysound = New Media.SoundPlayer(sPath)
        mysound.Play()
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.