io.kent Posted June 14, 2013 Report Posted June 14, 2013 You'll needTextboxtextbox1 - 4Shared Urltextbox2webbrowser1button ( Change text to download )Click Form1 Load, Add This Code :-Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadButton1.Enabled = FalseWebBrowser1.Hide()TextBox2.Hide()TextBox2.Text = "http://www.4server.info/download/"End SubClick The Download Button, Add This Code :-Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickWebBrowser1.Navigate(TextBox2.Text + TextBox1.Text)MsgBox("Please wait a sec")End SubClick Textbox1, Add This Code :-Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChangedDim str1 As String = (TextBox1.Text)If str1.Contains("www.4shared.com/file/") ThenButton1.Enabled = TrueElseButton1.Enabled = FalseEnd IfEnd Sub Quote
BLODAS666 Posted June 16, 2013 Report Posted June 16, 2013 Daca ai invata si sa scrii, ar fi un castig si mai mare... Quote