Good evening ... !
i tried to design a web browser and everything is fine but my problem is ... i want to show in my code how can http works ... which mean i need to write the implemenation of the navigate function ... can any one help please ?!
Web browser...
Page 1 of 1
8 Replies - 1389 Views - Last Post: 20 December 2008 - 03:31 PM
Replies To: Web browser
#2
Re: Web browser
Posted 18 December 2008 - 11:46 AM
Post the code that you have completed so far in your attempt to fulfill your assignment.
[rules][/rules]
[rules][/rules]
#3
Re: Web browser
Posted 18 December 2008 - 02:18 PM
Thanks for caring Jayman ...
here is the code ... its really simple thats why i didnt write it !
and as the dr said he wnat us to show how http working (( i guess he want the implemenation of navigate or something ... )) !
here is the code ... its really simple thats why i didnt write it !
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click WebBrowser1.GoHome() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate(TextBox1.Text) End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click WebBrowser1.Stop() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click WebBrowser1.GoForward() End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click WebBrowser1.GoBack() End Sub Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub End Class
and as the dr said he wnat us to show how http working (( i guess he want the implemenation of navigate or something ... )) !
#4
Re: Web browser
Posted 18 December 2008 - 02:36 PM
I apologize, but I really don't understand what you're asking help with
#5
Re: Web browser
Posted 19 December 2008 - 02:01 AM
The question is asking me to design an educational browser that show me in it how HTTP work .
#6
Re: Web browser
Posted 20 December 2008 - 10:21 AM
Do you mean you wish to display the way tags work?
such as; <Font Face="Calibri">...</Font>
Or are you looking for something differant?
/Saldash
BTW.. will intro myself when I can, just thought I'd hop in and ask
such as; <Font Face="Calibri">...</Font>
Or are you looking for something differant?
/Saldash
BTW.. will intro myself when I can, just thought I'd hop in and ask
#7
Re: Web browser
Posted 20 December 2008 - 10:31 AM
#8
#9
Re: Web browser
Posted 20 December 2008 - 03:31 PM
well first off you need to add the the microsoft winsock control component
Option Explicit Private Sub Command1_Click() Sock.Connect "www.google.com", "80" ' open the socket to a server on port 80 End Sub Private Sub sock_connect() ' send the link you want to look up Sock.SendData "Get /search?q=visual+basic+winsock+help HTTP/1.0" & vbCrLf & vbCrLf ' dont forget the vbCrLf's ' also some servers require more info to be sent, like hostname, user-agent 'etc... so your going to want to look into that some End Sub Private Sub sock_DataArrival(ByVal bytes As Long) Static buf As String ' heres where you handle the incoming data Sock.GetData buf, vbString Text1.Text = Text1.Text & buf & vbCrLf End Sub
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|