Click here to Skip to main content
16,006,442 members
Home / Discussions / C#
   

C#

 
GeneralRe: DllNotFoundException Pin
thebeekeeper17-May-07 10:12
thebeekeeper17-May-07 10:12 
GeneralRe: DllNotFoundException Pin
mav.northwind17-May-07 19:38
mav.northwind17-May-07 19:38 
GeneralRe: DllNotFoundException Pin
thebeekeeper18-May-07 6:42
thebeekeeper18-May-07 6:42 
QuestionRead from text file..! Pin
mr jets17-May-07 8:26
mr jets17-May-07 8:26 
AnswerRe: Read from text file..! Pin
Not Active17-May-07 9:02
mentorNot Active17-May-07 9:02 
AnswerRe: Read from text file..! Pin
led mike17-May-07 9:11
led mike17-May-07 9:11 
GeneralRe: Read from text file..! Pin
mr jets17-May-07 11:31
mr jets17-May-07 11:31 
QuestionHow do I call javascript functions from my c# application? Pin
chance@crwmail.com17-May-07 8:23
chance@crwmail.com17-May-07 8:23 
I know this so far...I must use using System.Runtime.InteropServices; Also, I must say the form class is COM visible like this [ComVisible(true)] .

What I don't understand is how I can call the javascript functions once I have done that. I tried this:

string path = Path.Combine(Path.GetDirectoryName(this.GetType().Assembly.Location), "VirtualEarth.htm");
webBrowser1.Navigate(path);

webBrowser1.Document.InvokeScript("loadMap()");

webBrowser1.Document.InvokeScript("goto_map_position(43.22, 45.56)");

However, all it does it load the intial page. It doesn't appear that the javascript function calls are working. Can anyone provide an example of how to do this.

Many thanks,
chance.
AnswerRe: How do I call javascript functions from my c# application? Pin
led mike17-May-07 9:06
led mike17-May-07 9:06 
QuestionRe: How do I call javascript functions from my c# application? Pin
chance@crwmail.com17-May-07 10:02
chance@crwmail.com17-May-07 10:02 
QuestionClass Modifiers Pin
Chwins17-May-07 7:00
Chwins17-May-07 7:00 
AnswerRe: Class Modifiers [modified] Pin
Edmundisme17-May-07 7:27
Edmundisme17-May-07 7:27 
GeneralRe: Class Modifiers Pin
Dave Doknjas17-May-07 14:03
Dave Doknjas17-May-07 14:03 
GeneralRe: Class Modifiers Pin
Mundo Cani17-May-07 18:35
Mundo Cani17-May-07 18:35 
AnswerRe: Class Modifiers Pin
Manoj Kumar Rai17-May-07 7:34
professionalManoj Kumar Rai17-May-07 7:34 
GeneralRe: Class Modifiers Pin
Edmundisme17-May-07 7:41
Edmundisme17-May-07 7:41 
GeneralRe: Class Modifiers Pin
Manoj Kumar Rai17-May-07 7:49
professionalManoj Kumar Rai17-May-07 7:49 
Questionhow to compare the two versions of same software Pin
pashitech17-May-07 5:54
pashitech17-May-07 5:54 
QuestionWindows Media Player and Sounds levels Pin
seanf71117-May-07 5:32
seanf71117-May-07 5:32 
QuestionHow to compare two different pictures in search of the same object Pin
OviDeus17-May-07 4:42
OviDeus17-May-07 4:42 
QuestionDelete a directory Pin
MicealG17-May-07 4:27
MicealG17-May-07 4:27 
AnswerRe: Delete a directory Pin
Paul Brower17-May-07 4:37
Paul Brower17-May-07 4:37 
GeneralRe: Delete a directory Pin
MicealG17-May-07 4:48
MicealG17-May-07 4:48 
AnswerRe: Delete a directory Pin
Manoj Kumar Rai17-May-07 4:45
professionalManoj Kumar Rai17-May-07 4:45 
GeneralRe: Delete a directory Pin
MicealG17-May-07 4:57
MicealG17-May-07 4:57 

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.