H
HardySpicer
I have the following call from a Button1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strMp3 As String
strMp3 = "chop2.mp3"
Me.AxWindowsMediaPlayer1.URL = strMp3
End Sub
This works fine as part of a larger program and the Mp3 file plays.
However, if I want to automatically push the button in the code how do
I do this?
I tried
Button1_click ()
but it complains tyhat a declaration is expected? How do I do this...
Also tried
Button1.Enabled=True
didn't work either. Also had a look here
http://msdn2.microsoft.com/en-us/library/system.windows.forms.button.performclick.aspx
where it says
Visual Basic (Declaration)
Public Sub PerformClick
Visual Basic (Usage)
Dim instance As Button
instance.PerformClick
but I find this confusing.
regards
Hardy
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strMp3 As String
strMp3 = "chop2.mp3"
Me.AxWindowsMediaPlayer1.URL = strMp3
End Sub
This works fine as part of a larger program and the Mp3 file plays.
However, if I want to automatically push the button in the code how do
I do this?
I tried
Button1_click ()
but it complains tyhat a declaration is expected? How do I do this...
Also tried
Button1.Enabled=True
didn't work either. Also had a look here
http://msdn2.microsoft.com/en-us/library/system.windows.forms.button.performclick.aspx
where it says
Visual Basic (Declaration)
Public Sub PerformClick
Visual Basic (Usage)
Dim instance As Button
instance.PerformClick
but I find this confusing.
regards
Hardy