![]()
Benutzerinformationen überspringen
Dabei seit: 4. November 2009
Wohnort: Klotten
Frühere Benutzernamen: pasi2009
|
|
Visual Basic Quellcode |
1 2 3 4 |
Dim Länge As String = TimeSpan.FromSeconds(AudioDatei.Duration).Minutes.ToString("00") & ":" & Trackbar1.Maximum = Länge Trackbar1.Value = Audiodatei.Currentposition |
Benutzerinformationen überspringen
Dabei seit: 25. Juni 2008
Wohnort: Deizisau
Frühere Benutzernamen: Toby
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Imports Microsoft.DirectX Imports Microsoft.DirectX.AudioVideoPlayback Public Class Form1 Private WithEvents Song As Audio Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load try Song = New Audio("C:\Users\tobi\Documents\musik.mp3") Song.Play() Catch ex As Microsoft.DirectX.DirectXException MsgBox(ex.ErrorString) MsgBox(ex.Message) MsgBox(ex.InnerException) MsgBox(ex.ErrorCode.ToString) End Try End Sub End Class |
?|
|
Visual Basic Quellcode |
1 2 |
AudioDatei = New Audio(My.Resources.musik) AudioDatei.Play() |
.
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Imports Microsoft.DirectX Imports Microsoft.DirectX.AudioVideoPlayback Public Class Form1 Private WithEvents AudioDatei As Audio Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click AudioDatei = New Audio("E:\song.mp3") AudioDatei.Play() End Sub End Class |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »JeyBe« (4. April 2010, 14:20)
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
Imports Microsoft.DirectX Imports Microsoft.DirectX.AudioVideoPlayback Public Class Form1 Private WithEvents AudioDatei As Audio Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click AudioDatei.Play() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click AudioDatei.Pause() 'Pausieren End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click AudioDatei.Stop() 'Stoppen End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load AudioDatei = New Audio("C:\Klaas - Going Insane (House 2008).mp3") End Sub End Class |
|
|
Visual Basic Quellcode |
1 |
AudioDatei = New Audio("C:\Klaas - Going Insane (House 2008).mp3") |

. Im Release kommt dann keine Fehlermeldung
. |
|
Visual Basic Quellcode |
1 |
Dim Länge As String = TimeSpan.FromSeconds(VideoDatei.Duration).Minutes.ToString("00") & ":" & CStr(TimeSpan.FromSeconds(VideoDatei.Duration).Seconds) |



Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »teha« (3. Juni 2010, 16:15)