I need help with buttons I have A tree view that when you click on a node it changes the text in text boxes and i need it to change the command the button does. So when a user clickes a node it changes text in 3 text boxes and changes the download link for the button my code is hear please help. as you can see from the code all works fine but i need to use a button to download stuff and i dont no how the download code is
Thats what i need the button to do
VB.NET:
My.Computer.Network.DownloadFile _
("http://dl.dropbox.com/u/44028341/Cookie%20Pack.zip", _
cookiepack)
MsgBox("done")
Thats what i need the button to do
VB.NET:
Private Sub TreeView1_NodeMouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
Dim filePath As String
filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
Dim cookiepack As String
cookiepack = filePath + "\.minecraft\texturepacks\Cookie Pack.zip"
If e.Node.Name = "8tp1" Then
RichTextBox1.Text = "8x8 tp 1 info"
Label7.Text = "tp1 Author"
Label8.Text = "tp1 verison"
Label9.Text = "tp1 mc version"
End If
End Sub