I need to play multiple files simultaneously at the moment i am trying to use mciSendString() API it plays the files listed in a listbox. But it is only playing the first one i assume it would play the next one after the first is finished... cbf waiting to see.
I have been using the My.Computer.Audio.Play method for sounds in my program for a very long time, but now I have reached a point where the program needs to be able to play more than one sound at a time. What is the best (and preferably simplest) way to do this?
I want to play multiple sounds simultaneously from My.Resources in Visual Basic 2010. I have tried:My.Computer.Audio.Play(My.Resources.SoundName, AudioPlayMode.Background)
I have also tried using multiple Windows Media Player controls, but that also didn't work.The first sound is cut off when the next sound plays.When searching around the internet I found people suggesting using 'DirectSound', but there are only tutorials for DirectSound in VB 6.0.
I used different backgroundworkers to instantiate some 'heavy' forms thinking that it will reduce the time to instantiate them if I did them at once but it looks like I am wrong since it is still taking about 43 seconds to load all of them. Am I missing something or do you have a tip on how I can speed up their instantiation?
Not wanting to hijack 45minutes thread, I thought I might spawn a thread of my own based on his question.
PlausiblyDamp was kind enough to provide some generic code, which I have modified and attached.
I have made a few alterations mostly around removing random objects, as the game in question (Space Invaders) has a set amount of aliens and set starting positions.
As a start I have limited the UpdatedPostion to horizontal movement as the aliens only go side to side unless they hit an edge.[code]...
I am creating a GUI that monitors the entered application and if the application crashes the GUI starts the application back up. Problem is to run this application (WoW Private Server) I need 3 running applications. Is there a way to shell and wait 3 applications all at once. OR if i was to create a separate console application who's only job was to start the three applications at once how would I pass the application variable? Here is my program thus far: [URL]
We are looking to design a security application that does the following on laptops:If the ethernet adapter is used (cable plugged in) disable/block all other network connections (wireless WIFI, mobile broadband (PPP), virtual VPN adapters etc)When ethernet adapter is not being used again, all connections allowed.We have looked in the WMI a lot but there are no good ways of doing this. Only disabling the network connection is not secure enough because most mobile broadband applications try to re-establish the connection. This should be an application that works on all laptop vendors without any user interaction (such as choosing interfaces etc..).
I'd like to allow the user to select up to an entire column of cells and type and/or paste a single value that would then change the value of all the selected cells in the DataGridView to the value that was typed or pasted. I understand this is probably two separate answers, but perhaps if there is a way to set the contents of the clipboard with the value typed, I was thinking it may work well to identify both things I want to do.
How to run multiple funcations simultaneously using multithreading concept?
Actually i am making a software which has backend tool as MS ACCESS. it has 15000+ records in database and i need to display that records as my software loads..but it is much time consunable and sometimes it even goes out of time exception
I'm writing a program which gets the time and date from forums which only show "x hours ago" on the main thread list.What I do is get a list of threads, open their print version and fetch the info.I'm currently using a single webbrowser, because there's no control array anymore. This makes the proccess very slow.Is there a way to open all the threads' print versions simultaneously?(BTW, I'm using DOM functions like GetElementsByTag, so I'll need to get the page's "Document" object.)
I have three listboxes with vertical scroll bars. I'd like it so that when one is scrolled, so are the others. However, I can't seem to find a "scroll" event. I tried this:
vb.net Public Scrolling As Boolean Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown If e.Button = MouseButtons.Left Then
[code]....
It works when you click and drag on the listbox area where the items are, but not when you click on the scroll bar!
Consider I have a shared function:Public Shared Function CalculateAreaFromRadius(ByVal radius As Double) As Double
[Code]...
If I have two or more threads in the same vb .net app and each of them calls the shared function at the same time with different RADIUS, will they each get their own AREA? I want to know for each call to the function if it is using same local variables or each call creates new instances of local variables?Will the answers to above questions be same If I have multiple (2+) single threaded apps and they all call the function at the same time with different RADIUS value?
Using Visual Basic in Visual Studio 2008, I have created a Windows form with multiple tabs and questions. Each question has an associated drop-down listbox that the user will eventually click on to enter his or her response. My client has now informed me that she wants to change the standard responses in each response box. There are well over 100 drop-down listboxes, all with the same items, and they all must be changed.
I originally inputted the items using design view. Would someone please tell me if it's possible to edit all of these boxes in the design view simultaneously? When I control + click on more than one box, the Edit Items option that is normally available disappears. Is there a way to do it in code in a manner that would save back into design view?
I want to download a file using httpwebrequest and I want that file will be Split into several parts and download them simultaneously. Is it possible with httpwebrequest ?
I've created a two-worksheet template in Excel - the first sheet is for pretty charts, and the other sheet is for the data that drives those charts. I've written a vb.net 2005 app that can dump in all my data on the second worksheet, and the chart worksheet updates perfectly.I would like to do this report several times over in the same workbook. (So the tabs would read 'Person1 - Chart', 'Person1 - Data', 'Person2 - Chart', 'Person2 - Data', etc.)
My solution was to, for every person this report was going to be run for, copy the chart template, and then copy the data template. The problem is that every chart template that is created points to the original data worksheet. How can I set what worksheet each chart worksheet is pointing at?
I have two unrelated databases and I need to pass data back and forth between them. Right now I have created two separate entity models - one for each database - but this is causing issues in my code b/c I have to do a Using nameofcontext / End Using and when I try to then use some of the results from the first section of the code in a second Using nameofcontext / End Using it doesn't like it - b/c I've closed the connection to the first database!
I'm making a simple game. I want simultaneously go up and left.
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown ' If e.KeyCode = Keys.Z Or e.KeyCode = Keys.Up Then
I wrote a program to download and play AVI files the files are large in size and long time wise. I have the files playing as they are being downloaded but i can't see how long the file is or seek reliably. i was reading that the AVI headers are in the last 512kb of the AVI file *why would't they put it at the start* lol so my question is is there a way to download the last 512Kb of the file i'm downloading. i have the Bytes Read and Length of the file while its downlaoding i'm just not sure where to go from there, or how to do it atleast. If i had the length in time of the Avi file i could set the trackbar to be able to seek properly. or if someone has an idea how i could get the time of the video by using fps and some math i could prob do it that way too but idk how i would tell how i can find how many kb are in the fps i'm sure it changes so think that way is't going to be reliable. how to get the last 512kb would be the best option not sure if it can be done even.
how can i get it to play other files besides just .wav, like .mp3. wave files are way too large to be used easily if you want a good quality. why cant i play .mp3 files with it?when i convert a 2.1 mb mp3 file to .wav it turns out to be 36 mb?any other ways besides computer.audio to play audio files on command?
How do I play multiple startup movies? I have Windows Media Player embedded and it plays the first intro, as a WMV file, but I need to add another video after that one before the main menu appears.
I've been working on an mp3 alarm for awhile, but had to put it on hold for a bit because I can't get it to play anything other than .wav's. How'd you do it?
the user may open a 4 minute audio what i wnat is just to record first one minute or between two points(like between 1.14 and 1.32) and save in to .wav format
I am making a program that plays a sound whenever you hit a button, and was wondering if there was a way to play two .WAV files at once. Here is what the code looks like:
I'm trying to play one right after another by clicking a button to bring upa Multiple listing using the My.Computer.Audio.Play Statement! These are in a verticle row listing. Doesn't play them at all this way.If i use a seperate click button for each one then it works when clicking each one! why they won't play under one click of a button?
I'm trying to write a program that allows you to; 1) open a mp3 or wav file via the user finding the file and copying the file path and pasting it into a text box and, 2) by pressing a button it will play the desired file, and then 3) by pressing another button it will stop playing the file. I've already have this under pat,
Private Sub cmdOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOne.Click My.Computer.Audio.Play(My.Resources.buzzer, AudioPlayMode.Background) End Sub
im making a program that can play mp3 files but now i only have to figure out how to make them load in a listview i thougt of starting the program then letting it show sort of a folder chooser and then it should open the music chooser form ... (that works fine) now to make al the mp3 inside the folder load should i use sort of a filter or somthing i thougt of [code]