borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (Runtime error.) New Topic New Poll Post Reply
AndreaVB Forum : VB General : VB -- HTML Source
Poster Message
john13975
Level: Trainee

Registered: 20-07-2008
Posts: 1

icon VB -- HTML Source

How can I load a HTML source in my textbox and search for some of the tags...

Can anyone help me to ans. the above question with example??Thank you....

20-07-2008 at 06:02 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1039
icon Re: VB -- HTML Source

yeah.. in the form..

private sub form_load
dim fin as integer
dim strHTML as string
fin = freefile
open "c:myhtml.html" for input as fin
strHTML = input (lof(fin),fin)
close fin


me.textbox1.text = strhtml

  dim pos as long

pos = instr(1, strhtml,"<A")
  if pos>0 then
    msgbox "Found a dodgy hyperlink at the " & pos & " char in the html"
  end if

end sub

hope this helps
Kieron

____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

23-07-2008 at 07:29 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : VB -- HTML Source
Next Topic (Runtime error.) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder