Playing WAV / MP3 Files At Start Of Windows Form?

Apr 20, 2012

Been doing VB2010 for about a year now, have recently started to push the boundary's for what kind of media I can incorporate into my forms. I haven't been able to play .wav or .mp3 files though. I have tried to follow tutorials on microsoft and other coding websites without success.

View 1 Replies


ADVERTISEMENT

Windows Media Player Control Playing Behind Form

Aug 25, 2010

I have been trying to tweak the form and all of a sudden it doesn't show anymore. I have tried reversing all the settings back to original but nothing. Then I have tried:

[Code]...

View 3 Replies

C# - Detect If Application Start Using A Manual Handling (Pressing An Icon) Or Start When Windows Start?

Feb 28, 2011

I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?

View 2 Replies

Get Vlc To Automatically Start Playing When It Opens Up?

May 1, 2010

i've got a simple timer setup to start vlc

System.Diagnostics.Process.Start("c:\program files\videolan\vlc\vlc.exe")

only thing is, i'm not sure how to get vlc to automatically start playing when it opens up.

View 3 Replies

Enable And Start Windows Form Timer?

Jun 16, 2011

In my Windows Form's application, I enable and start a Windows Form's Timer for a state machine which interacts with various User Controls. In one part of the state machine where an external device is being rebooted, I need to disable the User Interface (a User Control's UI) for the time it takes the device to reboot. The problem exists in that once I use System.Threading.Sleep, the timer that fires the State Machine stops and never restarts. I even re-enabled the Timer and re-started it after the Sleep command but to no avail. Is this expected operation or should a Windows Form's Timer be able to restart after a Sleep?

Snippet of code from a step in the state machine below:
Cursor.Current = Cursors.WaitCursor
MainForm.Enabled = False
System.Threading.Thread.Sleep(8000)
MainForm.Enabled = True
Cursor.Current = Cursors.Default
MainForm.t1.Enabled = True
MainForm.t1.Start()

View 4 Replies

Access The Start Menu From A VB Form For Both Windows XP & 2000?

Jun 21, 2010

How can you access the Start Menu from a VB form for both Windows XP & 2000?

I've done a lot of research and haven't found anything that works for this.

View 2 Replies

Start Windows Form Project Using Simple Text Editor?

Jul 12, 2011

I want to start a Windows Forms Project (VB.NET) using a simple text editor like notepad. I'm not interested in creating a button and other controls from scratch, I just want to know how to create a form, initializing controls without using the wizard.how to use command-line to compile the whole project?

View 2 Replies

Playing MP3 Audio Files (And Not Using WMP)

Sep 27, 2010

Based on a thread earlier today, and in particular an answer that Cor gave wherein he
pointed to this article, I thought that I'd do some investigation. Many times here the question has come up about playing .mp3 audio files and NOT using the Windows Media Player object. In the article referenced above, he shows how this can be done via DirectX.

I've looked at DirectX before and it seemed ambiguous so I never really dug into it but it turns out to be pretty simple actually! I thought that I'd write this as a step-by-step of what I did so that maybe some of you will find use from it. The whole thing stems around using DirectX and to begin with, you'll need to download and install the SDK for it. If you haven't already,

try this link. Do be aware that it's a large download (about a half gig)! Once that's installed, create a form and add a reference to the class that we need for this. You can do this several ways, but the way I usually do is to right-click on the name in the Solution Explorer, then choose "Add Reference":

[Code]...

View 9 Replies

Playing MP3 Files From The Internet?

Jun 21, 2010

I want to play MP3 Files directly from the internet. I don't want to use other applications, like WMP, just my application.

I have a file that contains the list of the playable files: listoftracks.ini that contains:

hxxp://....../example.mp3

hxxp://....../example2.mp3

I wrote hXXp instead of http to disable links - in the files, they are http

Public Function Listen()
My.Computer.Network.DownloadFile("..../listoftracks.ini", Application.StartupPath & "/listoftracks.ini")

[Code]....

View 5 Replies

Playing Video Files (And Not Using WMP!)

Oct 3, 2010

This is tied in with the other discussion that I started last week about playing audio files using the DirectX classes. If you haven't yet had a look at that other thread,Using the same reference as in the audio application, let's set up a form for video this time. I started with a form that I then placed a split container on and in the lower panel of the split contatiner, I placed the buttons and other controls. Following is how I have mine set up:

Reread the thread on the audio player because the methods are very similar - in fact some are identical! However, this is video and it got a bit more involved as you might expect.The full code is here and I hope you'll find it useful to you. Following is a screenshot of the end result.

View 2 Replies

Use Process.Start To Start An Application Without Administrator Privileges On Windows 7

Feb 24, 2012

Visual Basic 2010 - Net Framework 4.0 Client

I have an application (application #1) running with Administrator privileges on Windows 7.

I want application # 1 to start another application (application #2) without Administrator privileges so application #2 is running as a standard user.

Is there a way to do this? I have been using Process.Start.

View 5 Replies

Playing 8 Mono .wav Files To 7.1 Speakers?

Jul 4, 2010

Is it possible to play 8 different and individual mono wave files to a 7.1 (8 channels) audio system using vb.net? (I undestand that the .1 speaker is the subwoofer and I'm not yet sure it can be replaced with an ordinary speaker.) The playing should start simultaneously and the files can be of different size/length.Is this something that should be done using win API functions if it can be accomplished at all.I just re-installed my old VB6 which I need to ugrade and vb.net would be the easiest for me so I placed this Q here.

View 2 Replies

Playing Audio Files In The Background?

Jan 29, 2009

I am working on an application in VB.net (.NET 2.0) where I need to open a dynamic amount of different audio streams. Normally, for audio files, one would suggest importing the Windows Media Player COM reference and adding a GUI-based element from the toolbox, but since I'll be working with a dynamic amount of these a GUI would be a terrible idea (especially with Tab stops).

View 4 Replies

VS 2008 Playing MP3 Files Through Code

Jan 2, 2010

I do not want to use a hidden player or anything. I want to play it through code.

View 5 Replies

VS 2008 Playing Video Files?

Sep 10, 2009

im new to VB and i would like to ask some questions;Im developing a Media Study Room program and i have this little problem, My problem is that, how can i designate the video in the list box, that when i click variable on the list, it will automatically play the video i designated to a number and its description in the bottom will appear.

View 18 Replies

Playing AVI Files So That They Work On XP, Vista And Win7

Jun 23, 2010

We have code in our former VB6 application, that ported fine to VB.NET, that plays a simple AVI file of the typical "flying folders" and "spinning maginfying glass" AVI. Under Windows XP, our application ran fine and everything was good.

Then we had customers start using Vista and Win7 and this stuff crashes. We were using the MS Common Controls (SP4) and then (SP6) - utilizing the Animation player. Now - these dont work and we get nasty errors.

I searched Microsoft and the web to answer the "what now?" question and though there are numerous suggestions, none of them work. We cant use Media Player because we dont want any menu - just the graphic. We dont know why, with the cool tools given in .NET, there is no animation player (seems a huge oversight...) But we need to get "unstuck" on this one, and we need that fast...

So, How does on play a simple AVI file using VB.NET code? What DLL or OCX does Microsoft recommend and is there a place we can find some sample code for it?

View 6 Replies

Playing Multiple And Overlapping Wave Files?

Jan 30, 2012

I'm trying to write a virtual piano program. Each key plays a sound from the resources directory.How do i play two(or more) sounds at the same time if ex two keys are pressed. Or start playing another sound while one is still playing.

View 2 Replies

VS 2010 - Playing Multiple Files From Array

Feb 26, 2011

I'm trying to make a "Simon" game with four buttons labeled 1-4. The game is supposed to read the numbers out loud, but i have a problem with that. I have 4 wav files from google text-to-speech, each named 1-4. I made an number generator that can return like this "42331", and the game is supposed to play 4.wav, 2.wav, 3.wav, 3.wav and 1.wav.

Here's what I got so far.
Public Class Form1
Dim rnd As New Random
Dim i = 0
Dim level As Integer = 5
Dim nums As String
[code] .....
It only plays 1.wav (the last in the sequence).

View 4 Replies

Game Programming :: Playing Wave Files In An Application

Nov 20, 2008

I have a program that speaks wave files. This works problemless with the Soundplayer class with the following code:

Sub MyPlayWav(ByVal WavFileName As String, ByVal StartPos As Long, ByVal EndPos As Long)
Dim wp as new SoundPlayer
wp.SoundLocation = WavFileName
wp.Play
End sub

The soundplayer does however not seem to have a method to play the wave from position StartPos to position EndPos and achieving just that would mean quite a reduction in downloads of these files.

The soundplayer does have a stream object, and that does have a seek method, suggesting that there might be a way to accomplish this, but how?

I plan to include other media files as I am developping the project, and I guess I will be confronted with the same problem.

View 2 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

Checking If Windows Is Currently Playing Audio?

Dec 3, 2009

my program is designed to run on windows7. the mixer in the taskbar lets you control volumes per application. is their a way to determin if a specific application is playing a sound? if not, how would i go about checking to see if the system is currently outputting anysound.

my app is currently setup to use a speech to text and text to speech. basicly i want it to be able to wait for the text to speach software to stop talking before my app plays internal sounds (using the My.Computer.Audio.Play)

i don't have any code to provide as i have no idea where to start.

View 4 Replies

Make Program Start At Windows Start Up?

Jun 12, 2010

I have a vb.net application and want it to start at Windows start up only if the user checks checkbox1 the procedures on how to do this and the code

View 1 Replies

VS 2010 : Deleting Files, Fonts From Resources, Playing Videos?

Jan 11, 2012

I am having a _ton_ of issues, and I am hoping some of you could clear it up...

1. OK So a while back someone showed me an example for fonts from resources, but I noticed if you close the window that it opens, The entire program shuts down... what can I do to fix it?Also, The fonts are not showing up on all computers, only this one....

2. I am trying to delete a image file, which the program downloads from the internet, and can change regularly, but when I try to delete it will not delete. It says its in use, and I cant figure out where.

3. I am trying to play videos using the following

vb
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer
Const WS_CHILD As Integer = &H40000000

[code]....

Now, I have confirmed the files it is attempting to play are in fact valid video files. It refuses to play all but the last one.

View 3 Replies

Playing .mp4 Videos In A Windows Desktop Application

Aug 17, 2010

I'm looking to see if anyone has a good reference for a third-party add-in that will allow me to play .mp4 video files inside my program without a need to embed a web browser in my program.

I have no problem buying it (well that depends on the cost of course!), but I want that when I distribute it, I include their .dll files and it'll work on the user's computer without anything else needed.

View 5 Replies

Playing Voice Over Modem From A Windows Service?

Jun 18, 2010

I'm developing a VB.NET Windows service which is costantly checking a BMS database for new alarms and making phone calls to warn operators remotely. I'm currently using a .NET TAPI wrapper and the SAPI 5.3 interop assembly, and the steps I'm taking to speak over the phone are:

Initialize TAPI interface;Make the call to the operator's number;Take the voice modem waveOut device id Set the voice output to that device id; Let SAPI do the magic. This is all working fine if I compile the code as a Windows console or forms application, but as soon as I compile and run it as a Windows Service, step 5 never occurs - voice modem calls but stays silent; everything else works, even digit monitoring.Now I know windows services are not supposed to interact with the desktop, so things like UI elements and playing sounds are a no-no, but I'm struggling to find an alternative which doesn't involve using the wave API and can be developed in a reasonable timeframe.

View 2 Replies

Update Excel Files Using .net (Windows Form)?

Dec 3, 2009

I have two, soon to be many spreadsheet files. There are cell references between the files which need to be updated. I would write this in a excel macro but these spreadsheets are design tables for Solidworks, a CAD system and it does not allow macro enabled workbooks. So what I would like to do is push a button and open all of the spreadsheets, accept the update workbook prompt then save and close the files.

I've seen a similar command developed by someone using the Soildworks API but updating design tables in solidworks takes ALOT of time to run compared to just opening and closing spreadsheets.I am using Visual Studio 2010 Beta 2 along with Excel 2010 Beta 2 (I like to have the new things)

View 2 Replies

Get Windows Media Player Current Playing Song?

Apr 13, 2011

VB.NET Visual Studios 2010 or 2008 only!I have searched like crazy and can't find how to get the wmp current playing song Title, Artist and Album names.

I would like to later bring this to Post to Facebook and Twitter ONLY when that button is clicked.

I have already tried things like this: (From the internet)

Dim zArtist As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Artist")
Dim zTrackTitle As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Title")
Dim zAlbum As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Album")

View 9 Replies

Playing Audio Clip From Windows Service For Notification?

Apr 22, 2009

I am creating a windows service that will do things behind the scenes without any GUI needed, thus the need for a Windows Service. The problem is though I would like to notify the user when certain events happen by playing a short audio clip. I know Windows Service's create a virtual Desktop, in which, Audio messages are not sent to the users Desktop.

View 3 Replies

How To Open And Play Video Files In Windows Form

Jun 8, 2011

how to open and play video files in windows form? also save videos in a specific folder inside the project.

View 2 Replies

Import Data From Windows Application Form To Excel,CSV Files?

Jan 8, 2009

I am using Datagridview and ListView Controls in my windows desktop application using vb.net.I want to Import data directly to Excell sheet and CSV file directly from form.

View 3 Replies







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