After searching the google am not be able to find something to help me out.
I wont to built a web player i broke down the project in pieces so i can be more efficient.
The user has 4 default station (4 radiobutton).From menuStrip can add a station.This is a run time control that add a new radiobutton on FlowLayoutPanel.It has a text like the user wont it.
The user can add as many station as he like.
I can be able to insert in radiobutton the proper text .How i can make after user check the radiobutton and push button Listen to load the url value and play.(i know after that RadioPlayer.URL = xxxx ).
I be aware for clik event addressOf and for a dynamical used array but nothing help me out to take the url value and connect to the radiobutton.
After user add a station ,he can check the station and after push the Listen! button can listen .
This is only the part of the project. It is broke there so it is more clear and easy to help me.This not only for me but everyone search in google or in site.Runtime control item and handles the value.
Hope for the best
Public Class Form1 Private Sub AddToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToolStripMenuItem.Click Form2.Show() Me.Hide() End Sub End Class
Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim nameOfStation As String, stationUrl As String nameOfStation = TextBox1.Text stationUrl = TextBox2.Text Dim c As New RadioButton() c.Location = New Point(112, 79) c.Text = nameOfStation Form1.FlowLayoutPanel1.Controls.Add(c) Me.Hide() Form1.Show() End Sub End Class
This post has been edited by sougias: 08 April 2010 - 02:43 AM