Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-02-2009
Member
 
Join Date: Feb 2009
Posts: 8
How can i navigate the HTML pages that i have called into my vb.net application?

Hi,
I got the HTML pages to my project but now I have another question!
How can I navigate the HTML pages that i have called into my vb.net application?
Reply With Quote
  #2  
Old 20-02-2009
Member
 
Join Date: May 2008
Posts: 63
Re: How can i navigate the HTML pages that i have called into my vb.net application?

There is a WebBrowser control in .NET that you can use to interact with HTML page.
Just tell the control to navigate to a web page (or url). The control have properties and method that allow you to interact with the HTML Document Object Model (DOM)
Reply With Quote
  #3  
Old 20-02-2009
Member
 
Join Date: May 2008
Posts: 72
Re: How can i navigate the HTML pages that i have called into my vb.net application?

If you have a form with a WebBrowser and a textbox as your address bar, the following would take you to DIC

Code:
Me.WebBrowser1.Navigate("http://www.techarena.com")
If it was placed in a buttons click event

Suppose you had a form with three controls: a button (Button1), a textbox (TextBox1), and a web browser control (WebBrowser1).

If you want to browse your own URLs in the browser at run-time you could make the button, textbox and web control. The user enters the URL into the textbox and clicks the button to "go" (navigate) to that webpage.

The code for the entire program would look like this:

Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Navigate(TextBox1.Text)
    End Sub
End Class
No code would really go into the textbox or the web control... simply in the button.

Under the button click action i have placed the code:

Code:
WebBrowser1.Navigate(TextBox1.Text)
Reply With Quote
  #4  
Old 20-02-2009
Member
 
Join Date: May 2008
Posts: 115
Re: How can i navigate the HTML pages that i have called into my vb.net application?

I think you need to go through this tutorial to understand the concept of

http://msdn.microsoft.com/en-us/library/2te2y1x6.aspx

Hope this helps you!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How can i navigate the HTML pages that i have called into my vb.net application?"
Thread Thread Starter Forum Replies Last Post
How can I upload my html pages using filezilla lovecraft Technology & Internet 1 24-03-2012 04:37 PM
how SSI technique use in html pages Bansi_WADIA Software Development 4 28-01-2010 03:11 AM
How to add links to other pages in HTML Camdean Software Development 5 19-01-2010 03:41 PM
How to convert htm (or html) pages into PDF documents ? EricTheRed Tips & Tweaks 0 17-03-2009 05:21 PM
How to retrieve Response from HTML and PHP pages Sachit Software Development 2 02-02-2009 12:11 PM


All times are GMT +5.5. The time now is 05:53 AM.