Press The PLAY Button On The AxWindowsMediaPlayer It Plays Content From Listbox?
Dec 2, 2009this is my first post, and i thought the best people to help me out are you MSDN forum users.
View 2 Repliesthis is my first post, and i thought the best people to help me out are you MSDN forum users.
View 2 Replieshow can i make a piano type app, so when you press a button, it plays a file, if this can be achieved ill need help scripting itI like.....
Understandable Answers
1 2 3 4 5
- - - - - Rate yourself And Have A Kitkat
5 5 5 5 5
I have 2 forms
1. Form1
2. Form2
It always loads Form1 but never Form2 when i press the play button.How can i make it load Form2 instead of Form1 when i press the play button?
I am making a media player and I have a button where I want the text to change depending whether the media player is playing or paused. So far I have this:
If (AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsPlaying) Then Then
Button3.Text = "Pause"
ElseIf (AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsPaused) Then
Button3.Text = "Play"
End If
The problem is, is that i get an error under WMPLib.WMPPlayState on both lines. The error says 'WMPPlayState' is ambiguous in the namespace 'WMPLib'..
I have a form using AxWindowsMediaPlayer to play a short video. How can I load another form and close this form when the video is finished?
View 6 RepliesI am using Windows Media Player component in vb2008 and I was wondering if there is a way to make it repeat? or if I can just make it play every 51 seconds (which is how long the song is) I tried Axwindowsmediaplayer1.play and .repeat, But neither of those are functions, So I'm not sure what I would have to use.
View 2 RepliesAxWindowsMediaPlayer auto play next song from playlist
View 1 RepliesI'm using AxWMPLib.AxWindowsMediaPlayer to play wmv files within my application. I provide an encrypted wmv file, which will not play on windows media player and within my application load it into an array, decrypt it and save it as a normal wmv file, which can then be played in the normal way by windows media player.However, I want to avoid saving the decrypted file to disk as this could then be copied by the user. Is there a way to play the media from within my application without first saving the file to disk? IE directly from the byte array?
View 1 RepliesI'm using VB 2010 Express with two instance of AxWindowsMediaPlayer in order to sync two videos (the videos are of the same thing but from two camera angles). Because the videos were started at slightly different times I've manually set the start time of each one using the following
AxWindowsMediaPlayer1.Ctlcontrols.currentPosition = 314.5093196
AxWindowsMediaPlayer2.Ctlcontrols.currentPosition = 237.1639908
The problem I'm having is that whilst the WMP clock initially displays the above times in each AxWindowsMediaPlayer, when I play the videos each starts a few seconds out from the stated currentPositions.
The video files are around 300MB each and when testing with smaller video files the problem does not seem to happen. I'm guessing the large file size is causing some delay and hence causing the problem.
I want to add all image files in the current directory into my listbox1 when i press button1 Just like how u may open by OpenFileDialog or Drag & Drop but I want it to move all .jpg files in the current directory into the listbox so i do not have to use OpenFileDialog or Drag & Drop I am not sure how I can do this and the only code I could think about using is something linking to current directory.
View 3 Repliesi i have a listbox and 1 button in my application thing i want is when i click on some listbox item auto press that button or when i click on some item in list box it remove selected items from list box just with mouse click
View 3 Repliesi have a program that on a button click it plays music. when i click to play i recieve a loader lock. can someone tell me why this is and provide me a possible solution?
View 2 RepliesHow can you make a play button play/stop toggle? Currently my button plays a file in WMP but when I click it again, it just restarts the file. I would like it to toggle on and off, play and stop, not play and pause.
View 8 RepliesUsing 2 forms how would I click one button, from another form? ie In VB 4,5,6, I would used to do it as:-
Form 1:
private sub Command1_Click()
msgbox "Say Hello"
End Sub[code].....
If I clicked the button in form2, it would automaticlly, click the button in form1. Do I, do it the same way in VB Express or has it changed?
I have a few questions:
1. how do I make a button press a certain button in another application? (i.e - for example it goes to application "iexplorer" and press insert, home, a, b, or other button in the keyboard)
2. How do I make a virtual keyboard (for example a button opens form 2 or 3 and when you click on a button in the keyboard it goes to a certain text box in form 1)?
I'm making my own media player using the WMP plugin and can't work out how to tell "AxWindowsMediaPlayer" to pause. If possible I would appreciate it if I could know how to fast forward as well.
View 13 RepliesI am learning to make a mp3 player with visual basic. All i have done is that i have made a visual basic application in Visual Studio using windows-media-Player Plugin. Next what i did was to attach a Ms Access database to the listbox to show some songs in the listbox.
The listbox is showing my list of songs.
Now what i want is that whenever i double-Click a song name in that listbox, it should play it in the plugin of my app.
I tried using Hyperlinks in access but couldn't find any useful information about how to use it.
I have got a button - lets call it button X. And a listbox, listbox Y.
when button X is pressed MediaPlayer Z - "Axwindowsmediaplayer" will play all the songs in Listbox Y.
the items in the listbox are all files on the user's computer.
Can I make a menu item to execute 3 tasks?For instance when I select a file from a ListBox and I press ToolStripMenuItem1, the program will move the selected file to a directory, execute archive.bat file and the move the archived file to another directory?
View 10 Repliesi want to make the Grid view Button(Time In) invisible until the User press Time Out Button. Once the user press the Time Out Button,Time in Button must be shown
View 2 RepliesI had make a web radio player application but i want also my application to work like .mp3 player so i make
a new form (the code is below) my listbox work fine also the AxWindowsMediaPlayer1. But i don't know how i can set the AxWindowsMediaPlayer1 to play the next track in listbox.
[Code]...
I got a Media Player with playlist (listbox). When the track or video ends, I want the program to automatically play next track (or video) ib playlist.
Here's my code:
If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
Playlist.SelectedItem = Playlist.SelectedItem + 1
AxWindowsMediaPlayer1.URL = Playlist.SelectedItem
End If
I have a form that I want to add the content of the datagridview to a listbox every time I double clik on the cell of the datagridview, then store the contents of the listbox in my database.
View 1 RepliesI generate random number and it is of four columns in the listbox. I want to print it out. With the following VB.Net code, it prints only the first column, not the other three columns. Can any one help me, so that I may have all these columns printed out.
Public Class Form1
Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
PrintDocument1.Print()
End Sub
[code]....
I am using Visual Studio 2008 which should be VB.NET 3.0 language.
I have searched and searched for finding the answer on saving content / items in a listbox with strings. As you know the code for saving a text in textbox and get information again in application is[code]...
I tried to use this code but it will not show in my listbox
Form Load
Private Sub Choose_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If My.Computer.FileSystem.DirectoryExists("C:ACCOUNTSAccountUserlist" +
[Code]....
I have a form with a panel on it that is attached to 3 buttons that when pressed display a different image.How do I make the panel cycle through the images on pressing the "Z" key for example?
Public Class Master
Private Sub Master_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
what should i do to play .swf file on visual studio shockwaveFlash; This codes is working when in formLoad (the problem here is the filename)The listbox is composed of .swf files
AxShockwaveFlash1.Stop()
AxShockwaveFlash1.Movie = Application.StartupPath & "menus.swf"
AxShockwaveFlash1.Play()
When i double click the listbox1 which is composed of fullpath .swf it will not play on shockwave or even microsoft web browser This codes is not working
AxShockwaveFlash1.Movie = Application.StartupPath & listbox1.selecteditem (it needs a full path to run like the above codes)
Obtaining content of other application's ListBox
View 4 Repliesif I can populate an ArrayList from the content of a listBox like so:Dim Array1 As New ArrayListArray1= TexttBox1.textTextBox1.text = ("Peter", "Joey", "Lucas", "Jack", "Stand". "FranK")Note: textBox1 may contains one or no more then 6 elementsPlz advice how should write this code.
View 4 Replies