Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to capture IE output of displaying an XML file? Pin
Heath Stewart23-Apr-04 16:07
protectorHeath Stewart23-Apr-04 16:07 
GeneralRe: How to capture IE output of displaying an XML file? Pin
forgiven4u24-Apr-04 14:59
forgiven4u24-Apr-04 14:59 
GeneralRe: How to capture IE output of displaying an XML file? Pin
Heath Stewart25-Apr-04 4:19
protectorHeath Stewart25-Apr-04 4:19 
GeneralRe: How to capture IE output of displaying an XML file? Pin
forgiven4u25-Apr-04 5:07
forgiven4u25-Apr-04 5:07 
Generaldynamically add/remove reference for a specific configuration Pin
Glaxo23-Apr-04 13:49
Glaxo23-Apr-04 13:49 
GeneralRe: dynamically add/remove reference for a specific configuration Pin
Daniel Turini23-Apr-04 14:21
Daniel Turini23-Apr-04 14:21 
GeneralRe: dynamically add/remove reference for a specific configuration Pin
leppie23-Apr-04 20:55
leppie23-Apr-04 20:55 
Questionclicking an anchor (link) with AxWebBrowser? Pin
synthmusic23-Apr-04 12:22
synthmusic23-Apr-04 12:22 
I'm trying to automate some web tasks using an AxWebBrowser in a C# application. The browser is working, and I can modify text box text, etc. The thing I can't figure out is how to "click" an anchor. This works:

IHTMLElement link = (IHTMLElement)doc2.links.item(i,0);
if ( link.innerHTML.Equals("Log Out") )
{
IHTMLAnchorElement a = (IHTMLAnchorElement)link;

object flags = 0;
object targetFrame = "";
object postData = "";;
object headers = "";
this.Cursor = Cursors.WaitCursor;
this.wbMint.Navigate(a.href, ref flags, ref targetFrame, ref postData, ref headers);
}

But what if there is onclick scripting in the Anchor? Tried casting it as (IHTMLLinkElement) as well, but don't see any way to "click".

Any ideas?Confused | :confused:

AnswerRe: clicking an anchor (link) with AxWebBrowser? Pin
Heath Stewart23-Apr-04 15:59
protectorHeath Stewart23-Apr-04 15:59 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Anonymous26-Apr-04 8:58
Anonymous26-Apr-04 8:58 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Heath Stewart26-Apr-04 9:24
protectorHeath Stewart26-Apr-04 9:24 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Anonymous26-Apr-04 10:04
Anonymous26-Apr-04 10:04 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Heath Stewart26-Apr-04 10:08
protectorHeath Stewart26-Apr-04 10:08 
GeneralCreating a database manager Pin
showboat202323-Apr-04 12:00
showboat202323-Apr-04 12:00 
GeneralRe: Creating a database manager Pin
Heath Stewart23-Apr-04 15:56
protectorHeath Stewart23-Apr-04 15:56 
GeneralPassing a Class instance to a method... Pin
hammackj23-Apr-04 10:38
hammackj23-Apr-04 10:38 
GeneralRe: Passing a Class instance to a method... Pin
Heath Stewart23-Apr-04 10:41
protectorHeath Stewart23-Apr-04 10:41 
GeneralRe: Passing a Class instance to a method... Pin
hammackj23-Apr-04 10:51
hammackj23-Apr-04 10:51 
GeneralRe: Passing a Class instance to a method... Pin
Werdna23-Apr-04 16:32
Werdna23-Apr-04 16:32 
GeneralRe: Passing a Class instance to a method... Pin
Heath Stewart24-Apr-04 8:14
protectorHeath Stewart24-Apr-04 8:14 
GeneralDrawString strange problem Pin
_Comet_Keeper_23-Apr-04 10:20
_Comet_Keeper_23-Apr-04 10:20 
GeneralRe: DrawString strange problem Pin
Heath Stewart23-Apr-04 10:45
protectorHeath Stewart23-Apr-04 10:45 
QuestionHow can I do Word Wrap in ListBox Items Pin
BinalShah23-Apr-04 10:12
BinalShah23-Apr-04 10:12 
AnswerRe: How can I do Word Wrap in ListBox Items Pin
Heath Stewart23-Apr-04 10:38
protectorHeath Stewart23-Apr-04 10:38 
QuestionHow to cut video to images by C# Pin
MDM_RVS23-Apr-04 8:25
MDM_RVS23-Apr-04 8:25 

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.