ListBox - Playing Sound When Click One Of Names In LI

Sep 20, 2009

I made a Listbox but there is an issue.. I want to play a sound when I click one of the names in the listbox.

View 6 Replies


ADVERTISEMENT

Playing Sound Using Tapi?

Jan 13, 2008

Im developing a TAPI Applicationi had many problems with Acepting the call and detecting DTMF tones, but now these problems are solved,,, now the problem im facing is to play a wave file to the user who is on the phone...... Is there anyone who can gimme code or tel me how to do this in Vb.net

View 5 Replies

Sound Playing Using Both Channels?

Aug 25, 2010

I am creating a program in VB 2010 that needs to play two synthesized sine waves at the same time, one in the right channel and the other tone in the left channel.

These tones will be 2 slightly different frequencies.

I tried to start a thread a week or so ago, but I did not make it clear exactly what I needed, and did not get my project started yet.

View 9 Replies

.net - BSOD While Playing A Sound Resource?

Sep 21, 2010

I have a VB.NET application that crashes on a client's computer with a BSOD error... KERNEL_DATA_INPAGE_ERROR.This error occurs at a point where my program does two things:

Locks the computer
Plays a sound in BackgroundLoop mode

For locking the work station, I am just using this:

<DllImport("user32")> _
Public Shared Sub LockWorkStation()
End Sub

For playing the sound, I am doing this:

My.Computer.Audio.Play(My.Resources.ResourceManager.GetStream("somesound"), AudioPlayMode.BackgroundLoop)

Now, this sound loops until the user logs back in. My software detects the session state switch and stops playing the sound. Sometimes when I log back in, the sound card plays garbage data for a split second, instead of the rest of the audio buffer. I get the impression that this has something to do with session switching.Could my client be having an issue where there is memory corruption occurring at the point of locking the computer?I apologize for the vagueness of this post... I am not sure where to begin as I cannot reproduce the problem myself.

Edit: If the sound is left to play on its own, even without locking the computer, eventually the computer will lock up and then bluescreen. Playing the sound while locking at the same causes it to happen sooner.

Edit #2: So I've seen it fail now. The sound loop starts playing correctly but quickly switches to looping of garbage data. It's as if it is just reading a random location in memory and looping that. Very strange behavior!

View 1 Replies

Application - Playing WIndows Sound

Sep 11, 2009

I want to have a applacation then wehen somthing happens (like, uhh a error message but without the message box.) what would be the code that plays the windows alert sounds, and one that applies to the current sound scheme i have running.

View 1 Replies

Make The Sound Repeat Itself After It Is Done Playing?

May 10, 2011

Here is the code that I have that plays a certain sound

Dim Alarm As System.Media.SoundPlayer = New System.Media.SoundPlayer(Steven_Anderson_HW5.My.Resources.Alarm)
Alarm.Play()

Well, is there a way to make the sound repeat itself after it is done playing?

View 2 Replies

Playing All Sound Formats In Pocket Pc?

Jul 2, 2009

I want to play all sound formats in visual basic pocket pc.I'm using visual studio 2005 . net

View 2 Replies

VS 2008 - Playing MP3 Over Certain Sound Device?

Nov 26, 2009

I've been looking for a way to play an MP3 file over a specific sound device for a while now and I just haven't been able to find any decent code examples in VB.NET. Basically I need a way to find and list all the sound devices on the system and then play an MP3 file over one of them. I have found code examples in C# and similar but I couldn't find any VB.NET code.

View 2 Replies

Detect What Frequency Of The Sound That Is Playing On A Speaker?

Sep 8, 2009

how to detect what frequency of the sound that is playing on a speaker on vb2005. what reference should i have. what function should i use.

View 3 Replies

Playing A Short Sound On Timer Tick?

Feb 12, 2010

I'm writing a metronome program (a.k.a. click track; it's used for keeping you in time in music), and can't for ther life of me figure out how to play a sound byte (a short beep) as the beat.

I know I need to place this code in the Timer Tick event, but I just have no idea how to import/reference etc. the sound.

View 5 Replies

VS 2008 : Application To Get Any Sound Playing From Pc And Play It?

Dec 6, 2009

Is their a way for my application to get any sound playing from my pc and play it?

View 6 Replies

VS 2010 Display Text While A Sound Is Playing?

Nov 20, 2010

How can I display text while a sound is playing? It keep pausing until the sound has completed.

View 1 Replies

Forms :: Stop The Sound In Form1 From Playing When Form2 Open?

May 30, 2009

im trying to open another form2/app that have music but i wanna stop the sound in form1 from playing when form2 open?

View 1 Replies

Use WinAPI Recording And Playing Sound Without To Output To A File In VB Language?

Nov 19, 2007

I want to make a function to record the sound and then to play the record,like the telephone. I have ever download some articles,but they were all too complex,or they have too many unassociate code,so I can not understand the courses of the recording and playing.I want to get some code here?

View 2 Replies

Build A Small Program Which Will Allow Some One To Click On The Exit Button And The Sound Will Play And At The End Of The Sound The Program Will Then Close?

Apr 17, 2009

I am trying to build a small program which will allow some one to click on the exit button and the sound will play and at the end of the sound the program will then close. The sound clip is about 3 seconds long Here is what I have:

Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectSound
Public Class Form1
Private Dsound As CSoundDevice

[code]....

View 14 Replies

WAV File Play - Detect When A Sound File (WAV) Stops Playing?

Feb 25, 2009

For stopping by, is there a way to detect when a sound file (WAV) stops playing?

e.g.> There is a FORM with a PLAY button on which is coded to play a WAV file. But how does VB detect when the WAV file has finished playing?

Here is the code I have on the PLAY button

My.Computer.Audio.Play("test.wav", AudioPlayMode.BackgroundLoop)

View 3 Replies

VS 2008 Playing Next Song In Listbox?

Sep 13, 2009

I have a listbox with a few songs in which i can click individually and play using the axwindowsmediaplayer1 control.But i would like it so that when one song finishes it moves down the listbox and plays the next song..i undertsand how to move down the listbox and play the next song however not sure how to detect if the song has finished?

View 3 Replies

Add A Sound To A Button Click?

Mar 21, 2012

Is there a simple way of doing this

I found this online and I am getting an error[code]...

A call to PInvoke function 'WindowsApplication3!WindowsApplication3.Module1::apisndPlaySound' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

View 3 Replies

VB2010 - Click A Command Button Wav File Stops Playing

Jan 30, 2012

I have a problem. When I play a wav file using winmm, as soon as I click on a different command button on the form, the audio playback stops. How do I make sure the wav files are allowed to play in their entirety even when focus is moved to another control?

View 13 Replies

Video Playing Code In Button Click Must Stop For 5 Seconds?

Mar 15, 2012

i am doing an gaming project in vb.net 2008..my problem is i wrote code to play the video in button click,,so codes after the video playing code in button click must stop for 5 seconds how to do it?i cant use threading.thread.sleep(5000)if i use that then entire program execution will stop for 5 seconds if i use that then video will also stop playing.........

[code]...

View 8 Replies

Give Sound To Button When It Is Click?

Apr 16, 2009

I have vb.net application , in which i want to add sound to button when click event occures.

View 3 Replies

Sound Recording Start / Stop In Button Click

Oct 9, 2010

I want to include a functionality in my application such that when the user clicks on a button, the user should be able to record the voice, and when stopped, the sound should be saved. Here's what I wrote for the Start and Stop button.

[Code]...

View 2 Replies

Add File Names To Listbox

Feb 11, 2009

I have a new app im making... its for a mod im making for rFactor now for ease for the testers getting updated mod files im making a download manager (i have done that bit already and it works) but what im trying to do is put a list box on the form so they can click the file/zip they need to download and click download.. now i know how to get a list of file/folders from a dir on my pc...

Dim dir As String
Me.ListBox1.Items.Clear()
Dim dirs() As String = Directory.GetDirectories("C:\")

[CODE]...

But is there a way i can do this for my webserver? i have lloked on google and cant seam to find anything.... i was going to make a auto updater and i see some source code on code project but as im still pretty new to coding i dont think im ready for it.

View 7 Replies

Add File Names To Listbox?

Feb 2, 2011

Im not grasping something here.I can populate folders in listbox's but dead in the water populating files in listbox's.

Option Explicit On
Imports System.IO
Imports System.IO.FileInfo
Private Sub ListBox5_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox5.SelectedIndexChanged

[Code]...

View 5 Replies

How To Add ONLY File Names To Listbox

Apr 15, 2009

i'm having a bit of trouble. can't seem to add ONLY the file names, without path or extensions to a list box no problem there with a a textbox. also the code i have to get the file to open in a textbox is a bunch of runaround (get's the job done though) but includes a few labels, text boxes, etc. i need a simpler code if possible.

View 6 Replies

How To Put File Names In A Listbox

Jan 22, 2011

I wanna put the files that ends with ".dll" which in the EXfile pat in a listbox in my program so know It's kinda easy question but I'm a begginer, I was using vb6 & there were a FileListBox Tool it was

View 1 Replies

Get File Names From A Directory And Put Them In A ListBox?

May 12, 2010

I have a few questions that are bugging me.

1. How can i get file names from a directory and put them in a ListBox? Not the full path to them?

2. Can someone explain how to make a program default to .lua openings?

3. How could i put an icon in the Notification area?

4. When a dialog is open, like options, how can i disable clicking of the main form?

View 3 Replies

ListBox Showing Table Names?

Dec 15, 2011

I'm trying to have a ListBox show a list of tables available in a database. This can then be selected to be used later on.My problem is getting the actual table name to show up. I have the connection to the mysql database working properly, but it just shows "System.Data.DataRowView"

[code]...

View 2 Replies

Populate A Listbox With .txt File Names?

May 10, 2010

basically, i'm creating a program that is saving text files based on user input.
another screen is then needing to transfer the saved information into textboxes.

to do this i want the saved .txt files' titles to shows in a listbox, and when each selection is made, the textboxes are populated with the information in the .txt files.

View 10 Replies

VS 2008 Combining Names With Listbox?

Oct 25, 2009

This next program I am working on consists of 3 listbox's. The idea is to have the end user load names in the first and second list box. Then have a button's action when pressed combines the list in listbox1 with listbox2 then gives the output combination in listbox 3.

I also wanted to include some checkbox options such as adding a "_" or "." for every item.

Here is a thinking map of how I want it to work.

Listbox 1
TOM
Listbox2

[Code].....

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved