Play A MP3 File That Saved A Resource?
Aug 28, 2009How do I play a MP3 File that I saved a resource?
View 1 RepliesHow do I play a MP3 File that I saved a resource?
View 1 RepliesI would like to know how to write to a text file that is added to resources and then have it show the contents in a text box.But I would like to have it on a timer so every second it will refresh as I am trying to make an instant chat program.Also I would like to note that I want it to delete everything after all the users have closed the program. Is there any way to make it so the text file is empty when there is no body using the program any more?
Public Class Form1
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
[code].....
The code below works so i know the resource is registering correctly ...
vb.net
My.Computer.Audio.Play(My.Resources.alrt2xuk, AudioPlayMode.Background)
But what im trying to do is make a function where I can play the audio file in the programs resources with a string variable being passed to it representing the resource objects filename.
this is so users can type in a audio files name and pull it from the program's resources dynamically VS a big case i would keep having to expand ...
heres my code
[Code]....
but that isnt working for some reason ... keeps throwing "objects reference not set to instant of an object" on the "Return ..." line
I have a table on SQL Server 2008, I saved on it videos and audios as binary.I have to play these media (videos and audios) on my website.Can I do that?Is there a way that I could request the media as a link? so I can embed it...
View 1 RepliesI added 7 bmp files in the Resources tab of the Project Properties I have 7 PictureBox controls, for each control I set the Image property to a certain bmp saved in the Resource section.Everything was fine, however all of a sudden I got this warning message for each PictureBox
"The type 'My.Resources.Resources' has no property named 'lla_nodev'."lla_nodev represents the "lla_nodev.bmp" file I added in the Resource The worst thing is that the Form is unabel to load in the designer view, so cannot I modify it. The application is able to run though,with apparantely no problems in run time.
I want to play an MP3 File that I saved as a resource. How would I do that?
View 4 RepliesI am creating a simple button based rpg and was wondering if someone could help me with 3 things how to hold information within the game until the player save's the game, Saving the game, and Loading the game.I want the saved games to be saved onto a encryted file like .db or .dat file..
View 3 RepliesSo i created resource file New --> new file --> Native Resource Template Then added icons with custom id, like "x", "u_100", .. so i understand, what the files (in my case icons) is.. And i saved as 32-bit resource file (*.res) So i have a question, how can i use these files inside of resource file in my apps? i know how to add icons in to my app.. Me.Icon = New Icon(C:/icon.ico)
View 6 RepliesIm trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")
It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""
It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.
Heres my code
Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)
'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index
[CODE]...
I have a resource file that I include in my shared code library that has all of my re-usable classes in it (all the resources go into their own namespace). Now, what is the best practice regarding resources... should I include them in the same DLL, or should I have a seperate resource DLL and/or are there any benefits from seperating them out into their own file.
View 8 RepliesI decided on a comma separated data file, saved as a text file. This is for data that will not change. After loading the data from the text file; then throughout the lifetime of the program the data can change. The data can then be saved back to a different binary file. The idea is to have a save state system going.Does anyone have a suggestion or is opposed to the idea. Is there a simpler way to organize something like this?
View 6 RepliesI want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.
If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then
[code].....
the software im currently creating requires that a loaded powerpoint slideshow be automatically saved as a powerpoint show file (without actually creating a pps file).
View 1 Repliesi have this app. with a listbox , a save button, and 2 textboxes the listbox loads all the files in a folder that i save directly from my save button it automatically loads up the files when i click on a listing in the listbox, text1 is the file name, text2 the content.i want to be able to have the listbox highlight the new saved file name in the listbox once i save the file in order to show that the file was created and such.
View 5 RepliesI am trying to copy a file from one location to other by clicking on a link label.the original file is saved at "D:\New Folder\" and the complete address of the file is stored on the link label.whenever i click on the click label, a form appears with three button Open, Save as, and cancel file is opening normally but when i click on save as , save as dialog box appears normally, but after entering the file name when i click on save button, file is saved on the destination but without any extension.
Here is the code...
ext1 = System.IO.Path.GetExtension(LinkLabel3.Text)
saveFile1.DefaultExt = ext1
saveFile1.Filter = ext1 + "All Files|"
If (saveFile1.ShowDialog() = System.Windows.Forms.DialogResult.OK) And (saveFile1.FileName.Length) > 0 Then
System.IO.File.Copy(Form3.LinkLabel1.Text, saveFile1.FileName.ToString)
End If
How do u open up a saved file in vb 2010?
View 2 RepliesBasically im designing a programme where someone can put their information in, save it, and then I can access their information by clicking on their name in a list box.For example, they type in their name and number, when i open another form, their names come up an a list box, click on their name, and another form appears with their name and number in it.
View 1 RepliesIm right now working on a "notepad" type application, that i want to be able to save a code as a .vbs (I know how to save it as that), and then run/execute it. (the same as double click on it)[code]....
View 3 RepliesI have a button which when clicked, saves an image of any format from a picture box to a file.I have tried to come up with a code which can open the same file and delete any selected image but to no success.
View 6 RepliesI have my datagridview being loaded from a Text File and then being saved to a text file as a comma separated file - the commas obviously separate the columns. However in some of the cells prior to saving, I have data that i have inputted over two lines by pressing shift + return.
E.g.
"SOLD
10/05/2012"
This saves fine, but obviously shows up in the text file as a line break, which then causes some issues when I choose to re open the info back into DGV. How I can code so that it saves as a line break within a cell, rather than a completely new line.
Lets say I have a program that opens a save file dialog and the user selects a place in their computer to save the .txt file. One they clicked save is there a way to get the path of that saved file.
View 8 Repliesif i had say 10 labels with 10 textboxes how would i save all those labels accosiated with that text box as one text file
say example
label = name ---- textbox1
label2 =surname ---- textbox2
label3 address ---- textbox3
etc
so in the text file it saves it to look like this
name = hayden
surname = doh
address = johnston hwy
I'm creating an app that will be run via scheduled task, it will save an XLS file with the following naming convention:'S14-PROORDEREXP-Thursday' (the Thursday will change depending on what day of the week it is)I have the following line of code to save this excel file:
VB
If gstrJob = "S11" Then
xlWorkSheet.SaveAs(gstrFilePathS11 & gstrFileNameS11 & gstrFileTypeS11)
Else
[code].....
this will work fine the first time this scheduled task runs and there are no existing files but at the end of 1 week when I will be overwriting the existing files, how do I tell the application to overwrite the existing files without waiting on a yes prompt from me which it does in debug mode?
How to search certain word in text file and display in textbox/listbox?[code]...
View 12 Repliesmake the file saved with a variable as its name.
View 4 RepliesI made a media player that has a list box to select the file to play but it displays the file path but I want the filename and length.The code is:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender
As System.Object,
ByVal e As System.EventArgs)[code].....
How do I play a WAV file while the computer is reading aloud a text file? It uses Text to Speech synthesis and I need a laughter wav to play when the computer comes across something funny in the line.
View 2 RepliesI m trying to create media player .i want to add an swf file in current running video file at the top of my video player or bottom of my video.
View 2 RepliesFor 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)
I'm trying to change the Label.text into the Name choose of the File that i'm going to save. This is the Code:
Dim saveDlg As SaveFileDialog = New SaveFileDialog
saveDlg.Filter = "JPEG (*.jpeg)|*.jpeg |All Files |*.*"
saveDlg.Title = "Save Picture"
[Code]....
i want to change the label text into the File saved names, i want show just the name and not the entire path.