vb script....& c#

  • Thread starter Thread starter r+r
  • Start date Start date
R

r+r

Hello ,
could anyone explain how a vb or java script can call a method in a c#
program? What I'm trying to do is getting a string (a link) and pass it to
a text box in my app,more or less I.e. what you have clicking right with
Getright dowload program.

Cannot understand how the script is llinked to the program and runs the
private void receivestring(string str) {textbox.text=str; that's in my app.

Hope you understand what I need and can point me....Thanks


Tue, 03 Aug 2004 21:11:38 +0200
 
Expose your C# class as a COM object.
Check the MSDN doc's for details.

Willy.
 
r+r,

What is the context for this application? Are you speaking about from a
web page? Im not familiar with the Getright download program, so if you
could be more detailed about the use, it would help.

More than likely though, the program has installed a browser helper
object into IE, which can set up handlers for any number of events in the
document, and then the browser helper object transmits the data to the
external program.

Hope this helps.
 
Thanks both for your reply.
Well yes, i try to catch a link( or a collection of links) from a web page
and automatically paste it (them) in my textbox .

Other programs , like that i said in my post, use a script (vb or java) to
interface IE Explorer with the app.


< More than likely though, the program has installed a browser helper
<object into IE, which can set up handlers for any number of events in the
<document, and then the browser helper object transmits the data to the
<external program.

Do you have any useful link to explain this? I think it's what i need to
understand( some code will be useful too, but i like more to understand what
i'm writing).

<Expose your C# class as a COM object.
I'll search on msdn...but i never worked on COM....

Bye
 
r+r,

Take a look at "Browser Helper Objects" in MSDN. There should be
samples there that explain how to create one. If you want to do it in .NET,
you will have to brush up on COM interop as well.
 
Back
Top