Click here to Skip to main content
15,914,240 members
Home / Discussions / C#
   

C#

 
GeneralRe: synthesize mouse click Pin
Heath Stewart2-Feb-05 6:17
protectorHeath Stewart2-Feb-05 6:17 
GeneralRe: synthesize mouse click Pin
Heath Stewart1-Feb-05 15:34
protectorHeath Stewart1-Feb-05 15:34 
Generalmultiple tables binding to a grid Pin
cuah1-Feb-05 10:46
cuah1-Feb-05 10:46 
GeneralRe: multiple tables binding to a grid Pin
Heath Stewart1-Feb-05 15:16
protectorHeath Stewart1-Feb-05 15:16 
GeneralHyperlink Value Pin
myousufq1-Feb-05 10:12
myousufq1-Feb-05 10:12 
GeneralRe: Hyperlink Value Pin
Heath Stewart1-Feb-05 10:20
protectorHeath Stewart1-Feb-05 10:20 
GeneralRe: Hyperlink Value Pin
myousufq1-Feb-05 10:37
myousufq1-Feb-05 10:37 
GeneralRe: Hyperlink Value Pin
Heath Stewart1-Feb-05 10:52
protectorHeath Stewart1-Feb-05 10:52 
I did give you a solution using C#, but it requires you to interop with COM. The solution gets the actual value of the A.href attribute. If you want an absolute URL, combine the IHTMLDocument2.location.href (casting AxWebBrowser2.Document to IHTMLDocument2 this time - this is just how COM interop and COM itself works) and the link value from the first solution:
IHTMLDocument2 doc2 = (IHTMLDocument2)axWebBrowser2.Document;
if (doc != null)
{
  Uri url = new Uri(doc2.location.href);
  url = new Uri(url, a.href);
}
Now you've got an absolute URL. To be 100% correct, however, you should retrieve the IHTMLBaseElement from the <HEAD> and gets it's href attribute value - if any. This is an optional element so it may not exist; if it does exist it re-scopes URLs contained within the document to be relative to the <BASE href> value.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Hyperlink Value Pin
Heath Stewart1-Feb-05 10:56
protectorHeath Stewart1-Feb-05 10:56 
GeneralRe: Hyperlink Value Pin
myousufq2-Feb-05 3:39
myousufq2-Feb-05 3:39 
GeneralRe: Hyperlink Value Pin
Heath Stewart2-Feb-05 6:30
protectorHeath Stewart2-Feb-05 6:30 
GeneralRe: Hyperlink Value Pin
myousufq2-Feb-05 7:22
myousufq2-Feb-05 7:22 
GeneralRe: Hyperlink Value Pin
Heath Stewart2-Feb-05 7:29
protectorHeath Stewart2-Feb-05 7:29 
GeneralRe: Hyperlink Value Pin
myousufq3-Feb-05 1:56
myousufq3-Feb-05 1:56 
GeneralDumb question about Mono C# Pin
FocusedWolf1-Feb-05 10:06
FocusedWolf1-Feb-05 10:06 
GeneralRe: Dumb question about Mono C# Pin
Judah Gabriel Himango1-Feb-05 10:13
sponsorJudah Gabriel Himango1-Feb-05 10:13 
GeneralRe: Dumb question about Mono C# Pin
FocusedWolf1-Feb-05 10:19
FocusedWolf1-Feb-05 10:19 
GeneralRe: Dumb question about Mono C# Pin
Heath Stewart1-Feb-05 10:27
protectorHeath Stewart1-Feb-05 10:27 
GeneralRe: Dumb question about Mono C# Pin
FocusedWolf1-Feb-05 10:57
FocusedWolf1-Feb-05 10:57 
GeneralRe: Dumb question about Mono C# Pin
Heath Stewart1-Feb-05 15:10
protectorHeath Stewart1-Feb-05 15:10 
Questionhow to communicate between an application and a windows service. Pin
just_starting1-Feb-05 10:04
just_starting1-Feb-05 10:04 
AnswerRe: how to communicate between an application and a windows service. Pin
Heath Stewart1-Feb-05 10:13
protectorHeath Stewart1-Feb-05 10:13 
GeneralAutomatic OK OnDialog Click Pin
DiMats1-Feb-05 9:34
DiMats1-Feb-05 9:34 
GeneralRe: Automatic OK OnDialog Click Pin
Heath Stewart1-Feb-05 9:50
protectorHeath Stewart1-Feb-05 9:50 
GeneralWintab32 library class in c sharp Pin
FAHADI19841-Feb-05 8:35
FAHADI19841-Feb-05 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.