1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Exexute code when something happens

Discussion in 'Software Development' started by deadscenekid, Dec 8, 2008.

Thread Status:
Not open for further replies.
  1. deadscenekid

    deadscenekid Thread Starter

    Apr 26, 2006
    I am using the iTunes API Library and I was how you would get a text box to automatically update the TextBox Text when the song changes in VB.NET.....Here is the code I have so far"
        Private Sub chkItunes_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkItunes.CheckedChanged
            If iTunes.PlayerState = ITPlayerState.ITPlayerStatePlaying Then
                chkItunes.Text = "Get Current Playing iTunes Song"
                txtStatus.Text = "♫" + iTunes.CurrentTrack.Artist + " " + "-" + " " + iTunes.CurrentTrack.Name
                chkItunes.Checked = False
            End If
            If iTunes.PlayerState = ITPlayerState.ITPlayerStateStopped Then
                chkItunes.Text = "Start Playing A Song"
                Me.chkItunes.Checked = False
            End If
        End Sub
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/777589