C# & VB.NET School Support

Moderators: None (Apply to moderate this forum)
Number of threads: 138
Number of posts: 231

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Capture url in open web page Posted by Willqwerty on 18 Aug 2009 at 3:56 PM
I can't seem to find a way to get my URL variable to hold the url of the internet explorer window i have opened..... any ideas why?


Here is my code so far:

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim Text As String = ""
Dim Webbrowser1 As Object
Dim url As String

Webbrowser1 = CreateObject("InternetExplorer.Application")
Webbrowser1.visible = True
Webbrowser1.Navigate("Http://www.facebook.com")


Do Until (Webbrowser1.busy = False)
Loop

Line2:

Dim PauseTime1 As Long = 1
Do Until (PauseTime1 = 400000000)
PauseTime1 = PauseTime1 + 1
Loop


url = Here i need the url to be captured
MsgBox(url)

If url = ("http://www.facebook.com/") Then
Else
GoTo Line2
End If


My.Computer.Keyboard.SendKeys("{Tab 14}")
My.Computer.Keyboard.SendKeys("Email")
My.Computer.Keyboard.SendKeys("{Tab}")
My.Computer.Keyboard.SendKeys("Password")
My.Computer.Keyboard.SendKeys("{enter}")



End Sub
End Class





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.