The integer is needed for changing the visualizations, the function is needed to hide the cursor.
Code: Select all If l = 1 Then PicVis.Image = vis.CreateSpectrum(musicbox.strm, PicVis.Width, PicVis.Height, Color.Lime, Color.Red, Color.Black, False, False, False)
If l = 2 Then PicVis.Image = vis.CreateSpectrumLine(musicbox.strm, PicVis.Width, PicVis.Height, Color.BlueViolet, Color.Purple, Color.Black, 2, 2, False, False, False)
If l = 3 Then PicVis.Image = vis.CreateSpectrum(musicbox.strm, PicVis.Width, PicVis.Height, Color.Yellow, Color.Red, Color.Black, False, True, True)
If l = 4 Then PicVis.Image = vis.CreateSpectrumLine(musicbox.strm, PicVis.Width, PicVis.Height, Color.Blue, Color.Red, Color.Black, 16, 4, False, False, False)
If l = 5 Then PicVis.Image = vis.CreateSpectrumEllipse(musicbox.strm, PicVis.Width, PicVis.Height, Color.Green, Color.Yellow, Color.Black, 1, 2, False, False, False)
If l = 6 Then PicVis.Image = vis.CreateSpectrumEllipse(musicbox.strm, PicVis.Width, PicVis.Height, Color.Violet, Color.SteelBlue, Color.Black, 2, 4, False, False, False)
If l = 7 Then PicVis.Image = vis.CreateSpectrumDot(musicbox.strm, PicVis.Width, PicVis.Height, Color.Gold, Color.Yellow, Color.Black, 1, 0, False, False, False)
If l = 8 Then PicVis.Image = vis.CreateSpectrumDot(musicbox.strm, PicVis.Width, PicVis.Height, Color.Orange, Color.Red, Color.Black, 2, 1, False, False, False)
If l = 9 Then PicVis.Image = vis.CreateSpectrumLinePeak(musicbox.strm, PicVis.Width, PicVis.Height, Color.SeaGreen, Color.LightGreen, Color.Orange, Color.Black, 2, 1, 2, 10, False, False, False)
If l = 10 Then PicVis.Image = vis.CreateSpectrumLinePeak(musicbox.strm, PicVis.Width, PicVis.Height, Color.GreenYellow, Color.RoyalBlue, Color.DarkOrange, Color.Black, 23, 5, 3, 5, False, False, False)
If l = 11 Then PicVis.Image = vis.CreateSpectrumWave(musicbox.strm, PicVis.Width, PicVis.Height, Color.Chocolate, Color.DarkGoldenrod, Color.Black, 1, False, False, False)
If l = 12 Then PicVis.Image = vis.CreateSpectrumBean(musicbox.strm, PicVis.Width, PicVis.Height, Color.Silver, Color.DarkGreen, Color.Black, 4, False, False, False)
If l = 13 Then PicVis.Image = vis.CreateSpectrumText(musicbox.strm, PicVis.Width, PicVis.Height, Color.Chocolate, Color.DarkGoldenrod, Color.Black, "MusicBox.NET is Awes0me Like Fro", False, False, False)
If l = 14 Then PicVis.Image = vis.CreateWaveForm(musicbox.strm, PicVis.Width, PicVis.Height, Color.Green, Color.Red, Color.Gray, Color.Black, 1, True, False, True)
The timer should determine what visualization should it shows according to the integer's value, musicbox.strm is the integer in the other form where you play music, change "musicbox" to your form's first name and change the colors to whatever color you want.
Now, you need to change the value of integer every time someone left click or right click on it, so you add the following code under PicVis_Click :
If l, the integer is 14, which is the visualization number, then switch it back to one, else, add 1 to it so it switches to the next value.
Now, you might want to hide the cursor when your mouse go overs the visualizations, so add the following code under <YourVisualizationFormName>_Load :