Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Links > Webbrowser?


You know how when you drag over a link in IE and it tells you the webpage on the status bar. Well I was wondering how I could get a label to do that?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Webbrowser - Open Links From Excel/powerpoint Within The Same Window (ie Webbrowser)
I am working on a custom browser using the webbrowser control.

When I open powerpoint or excel documents within the webbrowser and when I click on a link in them, I want to open the resulting page in the same window (ie. within the webbrowser control) instead of launching a new instance of default browser. How can do this ?

TIA

WebBrowser Links Opening
Instead of clicking on a link in the browser and it opening the page, can you click on a link that will send the link name to a specific text box? Does someone have an example they can show me?

Thanks for help

[Not Resolved] Webbrowser Links?
Hi guys.... I searched the forum but I didn't find the answer... So I post this question: How can I extract all the links in a webbrowser when the HTML page has frames?
I tried to look at Webbrowser.Document.Links.Length but it returns zero, and I can't find a way to access the same property in the frames!!!
Thanks,
Xmas.

How To Get All The Links Of A Web Page Without Using Webbrowser Control
Hello,
I want to get all the links of a webpage without using webbrowser control. Is there any way doing that? Please help...

Collecting And Listing All Links In Webbrowser
How could I list all links that are on the page into List1?

List1.AddItem WebBrowser1.Document.links ' This grabs the first link

Text1.Text = WebBrowser1.Document.links ' This lists ALL links, even the logout one which is undesired...

How can I gather several specific links?

WebBrowser - Show Links In Status Bar
I want it so when the user places the cursor over a link, it shows the link shortcut in the statusbar

thanks

Extracting Links Within A Webbrowser Control
I have a webbrowser control that navigates to a page on an online game (http://www.outwar.com/rankings.php?t...=400&submit=go) and i want to be able to extract all the player names and links on that. I think i could probably use the inet control to get the source code and parse it, but that would take me damn well near the rest of my life to do, so im wondering if i can get the links and names off using the webbrowser control and add them to a listbox.

Webbrowser Control (how To Retrieve Links)
I am using the webbrowser control in VB. I was wondering if there is any "trick" for visualising, or somehow retrieving all the links from the actual web page? And by links I don't mean the content, but only the url itself, of course.

I thought about making a loop, sending the TAB key with the sendkeys function and look at the statustext variable.

Any better solutions?

Open All Links From Webbrowser Into A New Window?
how can i acheive this? xome of the links that i surf cause my webbrowser to screw up and go full screen, so how can i make all the links open in a new window, not in my program...

Stop Dragging Links From Webbrowser Control
Hi all,
i'm creating a securelink browser application using
WebBrowser cotrol in VB6.
Our requirment is that no one can't do drag and drop
a hyperlink out side the application ,as one can do
with other browsers.
so how can i do this ,plz help me.

Thanks

Finding All Links Absolute Position X,Y Relatively To The Screen In VB6 WebBrowser
Finding all links absolute position X,Y relatively to the screen in VB6 WebBrowser
There is a Visual Basic 6 application with WebBrowser in it.
This application is about statistical information on what html tags were loaded, where they are being located - it's position X,Y

For example I want to find Document.getelementsbytagname("a") link and anchor position on the screen, how do I do it?
There is example in JS, that I could inject into webpage by scriptcontrol but could I do in in VB6 itself?
function getElementPosition(elemId)
{
var elem = document.getElementById(elemId);

var w = elem.offsetWidth;
var h = elem.offsetHeight;

var l = 0;
var t = 0;

while (elem)
{
l += elem.offsetLeft;
t += elem.offsetTop;
elem = elem.offsetParent;
}

return {"left":l, "top":t, "width": w, "height":h};
}

Trying by vb6 in webbrowser

Dim WithEvents doc As HTMLDocument
Dim elem As IHTMLElement
Set doc = ie.document

For x = 0 To doc.getElementsByTagName("a").length - 1

Set elem = doc.getElementsByTagName("a")(x)


I want convert this nonsense
'"-PParent=" & elem.offsetParent.offsetParent.tagName & "=" & elem.offsetParent.offsetParent.id & _
'"-3Parent=" & elem.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.id

To while loop, but I can't figure it out how

While (TypeOf elem Is IHTMLElement)
parentall = "-Parent Tag=" & elem.offsetParent.tagName & _
elem.id & ",l=" & elem.offsetLeft & ";t=" & elem.offsetTop & _
Set elem = elem.offsetParent
Wend

Next x

Finding All Links Absolute Position X,Y Relatively To The Screen In VB6 WebBrowser
Finding all links absolute position X,Y relatively to the screen in VB6 WebBrowser
There is a Visual Basic 6 application with WebBrowser in it.
This application is about statistical information on what html tags were loaded, where they are being located - it's position X,Y

For example I want to find Document.getelementsbytagname("a") link and anchor position on the screen, how do I do it?
There is example in JS, that I could inject into webpage by scriptcontrol but could I do in in VB6 itself?
function getElementPosition(elemId)
{
var elem = document.getElementById(elemId);

var w = elem.offsetWidth;
var h = elem.offsetHeight;

var l = 0;
var t = 0;

while (elem)
{
l += elem.offsetLeft;
t += elem.offsetTop;
elem = elem.offsetParent;
}

return {"left":l, "top":t, "width": w, "height":h};
}

Trying by vb6 in webbrowser

Dim WithEvents doc As HTMLDocument
Dim elem As IHTMLElement
Set doc = ie.document

For x = 0 To doc.getElementsByTagName("a").length - 1

Set elem = doc.getElementsByTagName("a")(x)


I want convert this nonsense
'"-PParent=" & elem.offsetParent.offsetParent.tagName & "=" & elem.offsetParent.offsetParent.id & _
'"-3Parent=" & elem.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.id

To while loop, but I can't figure it out how

While (TypeOf elem Is IHTMLElement)
parentall = "-Parent Tag=" & elem.offsetParent.tagName & _
elem.id & ",l=" & elem.offsetLeft & ";t=" & elem.offsetTop & _
Set elem = elem.offsetParent
Wend

Next x

How Can You Get A List Of Images On A Webpage, With Their Links In A Webbrowser Ctrl?
In a webbrowser control, you can get a list of all links by the code
VB Code:
For x = 0 to WB.Document.links.length - 1msgbox WB.Document.Links(x).srcNext
and you can get a list of images with
VB Code:
For x = 0 to WB.Document.images.length - 1msgbox WB.Document.images(x).srcNext
but how can you get a list of images and the links they link to (if any?)

Finding All Links Absolute Position X,Y Relatively To The Screen In VB6 WebBrowser
Finding all links absolute position X,Y relatively to the screen in VB6 WebBrowser
There is a Visual Basic 6 application with WebBrowser in it.
This application is about statistical information on what html tags were loaded, where they are being located - it's position X,Y

For example I want to find Document.getelementsbytagname("a") link and anchor position on the screen, how do I do it?
There is example in JS, that I could inject into webpage by scriptcontrol but could I do in in VB6 itself?
function getElementPosition(elemId)
{
    var elem = document.getElementById(elemId);
    
    var w = elem.offsetWidth;
    var h = elem.offsetHeight;
    
    var l = 0;
    var t = 0;
    
    while (elem)
    {
        l += elem.offsetLeft;
        t += elem.offsetTop;
        elem = elem.offsetParent;
    }

    return {"left":l, "top":t, "width": w, "height":h};
}

Trying by vb6 in webbrowser

Dim WithEvents doc As HTMLDocument
Dim elem As IHTMLElement
Set doc = ie.document

For x = 0 To doc.getElementsByTagName("a").length - 1

Set elem = doc.getElementsByTagName("a")(x)


I want convert this nonsense
'"-PParent=" & elem.offsetParent.offsetParent.tagName & "=" & elem.offsetParent.offsetParent.id & _
'"-3Parent=" & elem.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.id

To while loop, but I can't figure it out how

While (TypeOf elem Is IHTMLElement)
parentall = "-Parent Tag=" & elem.offsetParent.tagName & _
elem.id & ",l=" & elem.offsetLeft & ";t=" & elem.offsetTop & _
Set elem = elem.offsetParent
Wend

Next x

Amazing Problem. I Cant Get Links From Webbrowser Control When My Program Is Compiled
Hello,
I am trying to retrieve all the links from a web page. I am using webbrowser control for that. I create references of the Microsoft HTML Object library. I used 3 methods. And all of them works fine when i run the program within visual basic code window. But as soon as i create .exe it does not work and show me the error 'Object variable of with block variable not set' (error : 91)
Here is my code.

Method 1:

Code:
Dim doc as New HTMLDOCUMENT
Dim a_link As HTMLAnchorElement

wbrsource.navigate("www.bdlearner.qsh.es")

'Give time to webbrowser for loading document

do while wbrsource.readystate<>readystate_complete
doevents
loop

'Document loading completed. Extract links

Set doc = wbrSource.Document
Set a_link = doc.links

For Each a_link In doc.links
List1.AddItem a_link.href
Next a_link
Method 2:

Code:
dim collinks as variant
wbrsource.navigate("www.bdlearner.qsh.es")

'Give time to webbrowser for loading document

do while wbrsource.readystate<>readystate_complete
doevents
loop

'Document loading completed. Extract links

Set collinks = wbrSource.Document.All.tags("A")

For qq = 0 To collinks.Length - 1
List1.AddItem collinks(qq).href
Next qq
Method 3:

Code:
wbrsource.navigate("www.bdlearner.qsh.es")

'Give time to webbrowser for loading document

do while wbrsource.readystate<>readystate_complete
doevents
loop

'Document loading completed. Extract links

For qq = 0 To wbrSource.Document.links.Length - 1
List1.AddItem wbrSource.Document.links(qq).href
Next qq
I tried all 3 methods. But none works when the code is compiled into .exe.

What can i do now? I need a solution. I am using Microsoft Internet Explorer (Version: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158)

Please help me.

Kindest regards...
Shaoun

Catching "links" Click From Webbrowser In VB App
Hi All, I have been searching around, but haven't been able to find any help on my particular problem.

I am working on an application that is to be easily modifyable. It uses basic VB6 .dll's, and HTML.

Heres is the basics. It is a basic "yes" and "no" or fillin the blanks type app, where the Tech asks a series of questions based on the HTML form, checks the appropriate response, which then fills out a text box with the formated text. I am using HTML to create the forms to that each tech can, in effect design, or modify the form and the output to suit their needs.

For instance, tech gets a call for connecting to the internet. There are a dozen "obvious" questions that come to mind, it the LAN/Phone cable pluged in, is the Modem on, what version of OS are you using; etc. The rep can ask the questions, then click on the response, in the HTML form which then inturn adds the formatted text to a textbox that the rep can then copy and paste into the Companies ticketing system.

The part I am stuck on, is modifying the HTML Form. I want to have a part of the application that can create the forms as well as read them. So there is a finite list of tags that are used, but when the form is loaded is there a way to add a link say "cboOSType" that the rep can click on which triggers the correct form to open and allow the rep to modify the underlying code (tag name, length of textbox, output code; which is placed in a hidden value in the form).

Any suggestions?

Parsing Html Links And Download Links Separately
Can somebody help me out with Higher Level string extraction


I hope to extract the table content from a webpage source.. As all of you know that the source is very messy ....

I would like to extract information from a table that has

7 columns

say for example :

No | name | description | Links | from | mailto | Download link |

is what i intent to extract and convert the data to
No_name_description_links_from_mailto_donwloadlink

(ignore all the HTML tags or unwanted HTML code)

Excel Links And Setup Network And Intranet Links
Need some Forums site for excel and some site to help learn how to setup a Lan and intranet in easy terms

Update Links Then Break All Links
I have a spreadsheet that has links to an outside spreadsheet. When I open it, I want it to update the links. After it is done updating, I want it to break all links. thanks in advance for any help

How To Make The Webbrowser Control (and Just The Webbrowser In My Form) Offline?
wb.Offline = True
wb.Navigate "www.excite.com"

wont work.. itll still load excite (or any other site, doesnt matter if its cache or not)

anyone know how to prevent this?

also, how can you stop that errorbox saying 'cant load page because browser is offline' with the 2 options saying 'connect' or 'stay offline'? i dont want it popping up dozens of times when i try to visit a site in the webbrowser

Difference Between Webbrowser.refresh And Webbrowser.refresh2
What is the difference between the two and what are the levels in webbrowser.refresh2 means and what are their puspose?

I hope somebody would enlighten me on this....

Links I Need Links
want to find help

Links
Need some good links where i can learn

Basic Direct Draw, X and ISOmetric
How to do sprites
ISOmetric grid's
Pathfinders

thx in advance

Links In Vb!!
How can i do to make a hyperlink to a website from my program??

ADO Links
Hi,

I'm having some trouble with a basic ADO link to display data from an MS Access Table into a list box in visual basic.
Here's my code:

Public Sub Form_Activate()

Dim MyConn As ADODB.Connection
Dim MyRecSet As ADODB.Recordset
Dim strTi As String

Set MyConn = New ADODB.Connection
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = Z:Murray3148Project Componentsmusic.mdb;"
MyConn.Open

Set MyRecSet = MyConn.Execute("SELECT SongTitle FROM Music_Table")

Do Until MyRecSet.EOF

strTi = MyRecSet("SongTitle")

lstData.AddItem strTi & "-"

MyRecSet.MoveNext
Loop

MyConn.Close

End Sub

PLease Help me figure out what I'm missing, because the data from the database won't display. I'm sure the file path is correct, and the table name, I'm just not sure where I've gone wrong.

Thankyou!!

OPP Links
Please provide me with links that i can read some articles about objtec oriented programming...no obvious results in google...so someone might have one or two... and for advanced VB coding

Links?
Whats the code to make a http link in VB that will go to a site once a user clicks a label?

Web Links
What I'm looking for is very simple: I can send messages to external applications to simulate mouse clicks, EVEN IF APP IS MINIMIZED.

My question: Is there a way to emulate mouse clicks on web links of Internet Explorer (or any other browser), even if this program is minimized?

Add Links
Hi,
I need to search a PDF document for a particular texts (for example
"see Figure 3.1","in Figure 2.1" ," Figure 3.1 shows etc"),and if it's found, i have to Add Links to the texts to the place where Figure 3.1 ,Figure 2.1 and etc is
located.if i click on the "see in Figure 3.1"
it should automatically jump to the place where Figure 3.1 is located.

I have got the sample from "Acrobat JavaScript Sample" and modified according to my requirments.after running the script i found some script are set to an wrong destination.

can anyone help me to add links to a pdf file using VB.
i will be very much thankful if anyone direct me in a right direction with a sample code.
iam new to both VB and PDF.please help me

Useful Links
All links are good Check on 17 October 2002 as 10h35 GMT -5 hours.

I made this for myself and think that could help other too.
Feel free to add valuable link to good info site or links to good tool

The MZ-Tools realy worth it.

Please rate my post


MZ-Tools 3.0 is a freeware 'all-in-one' add-in for Visual Basic 5.0, Visual Basic 6.0 and the Visual Basic For Applications editor (provided by a VBA-enabled application such as the ones of Office 2000 and higher) which adds several features missing in the IDE. It provides a main menu, a toolbar, handy context menus or customizable shortcuts to access those features.
http://www.mztools.com/

Welcome to Wotsit's Format, the complete programmer's resource on the net. This site contains file format information on hundreds of different file types and all sorts of other useful programming information; algorithms, source code, specifications, etc.
http://www.wotsit.org/default.asp

see also
http://www.filespecs.com/index.jsp

The Windows Registry Guide, formerly RegEdit.com, provides an extensive range of registry tweaks, tricks & hacks for optimizing, enhancing and securing the Windows operating system.
http://www.winguides.com/registry/


The Sysinternals web site provides you with advanced utilities, technical information, and source code related to Windows 9x, Windows Me, and Windows NT/2000 internals that you won't find anywhere else. Mark Russinovich and Bryce Cogswell alone write and update everything here.
http://www.sysinternals.com/index.shtml

Fed up of your mailbox clogging with SPAM ?
http://www.fr1.cyberabuse.org/
These guys will help you (feel like you can) hit back!

http://www.able-consulting.com/ADO_Conn.htm
ADO Connection string samples - able-consulting

PlanetSourceCode - http://www.planet-source-code.com/
Huge repository of source code in almost every conceivable category. Updated Daily.

CodeGuru - http://www.codeguru.com/vb/index.shtml
Has some fairly advanced techniques. Also has library of tips sorted by control.
For instance, find out lots of tips to do with a listview control

http://www.thescarms.com/
Has good tutorials on advanced techniques, especially those involving API calls.
Especially good for subclassing, screensavers and activeskins demos

Common Controls Replacement Project - http://www.mvps.org/ccrp/
Has good quality FREE controls. Most duplicate existing MS controls but without the
overhead. Others add new features; for example, there is a good timer control with
true millisecond resolution.

VB2theMax - http://www.vb2themax.com/
Great collection of tips, bugs, code, articles etc. sorted into banks. Has quite a
few good articles by Francesco Balena.

FindTutorials - http://www.findtutorials.com/
Has all kinds of tutorials, but most deal with computer subjects.

VB Helper - http://www.vb-helper.com/
"...has some good tips & tricks for novice and higher. Also list several books that
they think would help a programmer also has tutorials that have helped me a lot.
But not as much as being at this forum." - GrimViper

http://www.codehound.com/
"Best VB search engine" - Neptune

http://www.vbapi.com
"Best collection of API with info on supported Windows versions" - Neptune

AllAPI Network - http://www.allapi.net/
One of the best places to get API information...
"The KPD team deserves a spot in the list for the API guide and the ToolShed." - JDT
(and fantastic downloadable API-Guide)

Gary Beene's Visual Basic Information Center - http://www.vbinformation.com/
"- A site with tutorials, source code, advice, etc. " - orufet

Visual Basic Explorer - http://www.vbexplorer.com/VBExplorer/VBExplorer.asp
"- Source code, tutorials " - orufet

VBspeed... - http://www.xbeat.net/vbspeed/
"Has some great tips for optimizing VB code, and many user-submitted functions which outperform implicit VB

functions." - hamstak

VBnet Visual Basic Developers Resource Centre - http://www.mvps.org/vbnet/
"I like it, as generally uncommon code and advanced examples are listed" - Neptune

http://www.mvps.org/htmlhelpcenter/
"For those who need to prepare an HTML help for their programs" - Neptune

Lucky's VB Gaming Site - http://rookscape.com/vbgaming/
"An excellent game prog site" - Neptune

http://www.W3Schools.com
"This link may not have anything to do with VB but is one of the best place to learn
VBScript, ASP, SQL etc.. everything about the WWW." - aJoey

http://www.vbaccelerator.com/
Has lots of tips and advanced code. Of special note, has article on saving JPG files.
"...hasn't been updated for a year, but still good" - ArnoutV

http://www.VBCode.com
A library of source code and tips. Has a search engine.

VBWire http://www.vbwire.com/
A Visual Basic news and information service. Updated daily.

http://www.shrinkwrapvb.com/
A tiny site run by one guy. Emphasis on AVI and TAPI programming.

http://www.fytek.com/
Has controls and programs for creating/manipulating PDF files. Has a free/shareware ActiveX DLL for converting TXT to PDF.

Other good sites:
http://abstractvb.com/
http://www.developerfusion.com/
http://www.vb-faq.com/
http://www.a1vbcode.com/


Notes on graphics management
http://www.sgi.com/grafica/index.html

Links In RTB
Is it possible to get a link into a RTB?

Links
hi,

i would like to add some links in the about dialog form of my program, but i don't know how to realize that.

and do you know how to ping any server?

Links...
You know when you move your mouse over a link in IE, how the hand appears, but the finger is pointing exactly in the same spot as the arrow point? How can I do this in my app? When I make the cursor custom and the hand, it always moves to the right a little bit, and it looks really weird.

Thanks
-Joey

MDI Links
Ladies & Gents,

I realise I may well be called a Lazee Git for asking, but anyone got a snippette of source code I 'perloign' (correct spelling) which handles resizing ? Ie if I resize my MDI App, all windows inside get resized to the same degree ??

Thank Tim

Links
How do you put links in vb??? I forgot

Links && VB
Can anyone tell me how to make a label into a link, that when you click it it actually opens a browser and displays the page? is there a way?

VBA Links
I have a problem checking for links in Excel VBA. I am using the link sources property and i want to check both XL and OLE links.

At present i can only check for one type of link as follows

mark = activeworkbook.linksources(xlExcellinks)

How do i check for any sort of links????
I have tried:
mark = activeworkbook.linksources
but this does not work either.

Help?

Web Links
How would you go about making text link to the web?? Im trying to make a program where you can store web pages. Also when i close this program down, how would I make it so that it keeps all of the information added during that sesion?

-Steve

Links
my site is up again...

DirtBagDog

If you want to crosslink sites..(Ie...I'm on your links you're on mine.) send me your site address.

I Need Web Links...
about basic C dll construction(w/ VC++ 6.0)
that we CAN call from VB

thank you for any help

Links
I am writing a visual basic help file. I loaded that file into a text box on a form when user clicks on help. But I need to have some text in the help file that links to other locations(bookmarks) in the same file. How do I go about doing that??(I tried to write the help file in word, then copy and paste into the text box, but I lost the links)

Thanks

Add Links
Add links
...?

Looking For Links On API... :D
Hi, Im looking for links on API... somehting like a "API BIBLE". Im looking more particulary on SendMessage... but learning more is not a bad thing :D

thanks

Vb Links
Here any1 good any good links to learn vb from

heres 1

www.acky.net

Get All Links That Contain
Hi,
I am trying to get links off my webpage, but only links that contain .htm in the link. And I'm new to array's so if someone can tell me how to get the links and put it itno an array that'd be great.
thx

Useful Links
Devguru provide a useful,free On-Line ADO Quick Reference and JET SQL Quick Reference
Able Consulting provide an excellent list of ADO Connection Strings
MDAC is Microsoft's ADO & Database Driver download package
There is also a list of links to individual database sites over in the ADO.NET & XML Forum at Useful ADO.NET / Database Links
SQL Server 2000 Windows CE Edition frequently asked questions


vikramjb : able consulting link changed



Edited by - vikramjb on 12/7/2005 11:08:10 PM

Web Links
I want to place a code into Visual Basic to make a link to a web site. I need to find this to get an A on a final project today. Please Help! I have tried the code:
[vbcode]
ShellExecute me.hwnd, "open", "http://www.yahoo.com", 0&, 0&, 0&
[/vbcode]

Links
Hi,
I have Two Command Buttons on my form . One is an Update Button which updates an access database and the other is an Exit button which leads me to the Menu.
How do i direct the exit button to lead me to the menu.
What's the code???
Just like in html you have your links &lt;a href="whatever.html"&gt;. How do i do this in Visual Basic?
Thanks alot,
Derek

Copyright © 2005-08 www.BigResource.com, All rights reserved