io.kent Posted June 17, 2013 Report Posted June 17, 2013 This is the Source Code for Rapidshare Downloader Using Premium Account....By Using this You NeedWebbrowserTextboxButton1 for NavigateButton2 for DownloadFirst You Need to Add the Webbrowser from the ToolboxAfter thatClick the Form1 and Add this Code :-[This will Load the Rapidshare ServerPrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadMe.Enabled = FalseWebBrowser1.Navigate("http://www.rapidshare.com")End SubClick the Button1 and Add this Code :-This is Enter Ur Premium account Details and Login You In....Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickTryMsgBox("Please Wait !!.. 1 Minutes For the First Use", MsgBoxStyle.Information, "Rapidshare Premium Downloader")With WebBrowser1.Document.GetElementById("js-directlogin-username").SetAttribute("Value", "your Username").GetElementById("js-directlogin-password").SetAttribute("Value", "your password")End WithDim allelements2 As HtmlElementCollection = WebBrowser1.Document.AllFor Each webpageelement As HtmlElement In allelements2If webpageelement.GetAttribute("value") = "Login" Thenwebpageelement.InvokeMember("click")End IfNextCatchMsgBox("Please Try Again !!", MsgBoxStyle.Information, "Rapidshare Premium downloader")End TryEnd SubAfter that Add this Code :-If the Document Completed It Enable the ProgramPrivate Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles WebBrowser1.DocumentCompletedMe.Enabled = TrueEnd SubAt Last Click the Button2 and Add this Code :-This will download BeginPrivate Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.ClickWebBrowser1.Navigate(TextBox1.Text)End SubEnjoy.. Quote