Click here to Skip to main content
15,908,775 members
Home / Discussions / C#
   

C#

 
GeneralRe: CachedBitmap Pin
mhmoud rawas12-Nov-03 22:55
mhmoud rawas12-Nov-03 22:55 
GeneralRe: CachedBitmap Pin
J. Dunlap13-Nov-03 8:42
J. Dunlap13-Nov-03 8:42 
GeneralRe: CachedBitmap Pin
mhmoud rawas14-Nov-03 20:16
mhmoud rawas14-Nov-03 20:16 
Questionhow to control web components in winform by embeding a browser(ie) Pin
nakey_yang12-Nov-03 18:45
nakey_yang12-Nov-03 18:45 
AnswerRe: how to control web components in winform by embeding a browser(ie) Pin
mhmoud rawas12-Nov-03 18:57
mhmoud rawas12-Nov-03 18:57 
AnswerRe: how to control web components in winform by embeding a browser(ie) Pin
Heath Stewart13-Nov-03 3:36
protectorHeath Stewart13-Nov-03 3:36 
GeneralRe: how to control web components in winform by embeding a browser(ie) Pin
J. Dunlap13-Nov-03 8:38
J. Dunlap13-Nov-03 8:38 
AnswerRe: how to control web components in winform by embeding a browser(ie) Pin
Heath Stewart13-Nov-03 3:47
protectorHeath Stewart13-Nov-03 3:47 
Oh, about those other links: rather than manually defining all the interfaces, you can use a technique that described in this article: http://www.codeproject.com/csharp/advhost.asp[^]

You create an IDL file (used in COM programming) to forward-define interfaces and compile that to a typelib (TLB). Then you use the tlbimp.exe utility in the .NET SDK to create an interop assembly out of that. Now you're got your interfaces defined correctly and just have to implement them! A word of caution, though: all the methods return void. Some methods require that you return S_FALSE in COM, which is still a success code. Since the return type is void, you can't return anything and you can't use a COMException because that creates an error state. In these cases, you will have to define the interface yourself and for those methods make them return an int and add the PreserveSignature=true property statement to the MarshalAsAttribute that you must add to the method.

Also, another helpful article here on CP is a book excerpt: http://www.codeproject.com/books/0764549146_8.asp[^]

These are both pretty good, but I still recommend you read that link I gave you to MSDN. It's the best way to learn about hosting the WebBrowser control or MSHTML.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: how to control web components in winform by embeding a browser(ie) Pin
J. Dunlap13-Nov-03 8:26
J. Dunlap13-Nov-03 8:26 
GeneralCOM+ Transaction 70-320 exam question Pin
CillyMe12-Nov-03 17:52
CillyMe12-Nov-03 17:52 
GeneralFileDialog in WEB forms application Pin
Rostrox12-Nov-03 17:22
Rostrox12-Nov-03 17:22 
GeneralRe: FileDialog in WEB forms application Pin
Heath Stewart13-Nov-03 3:20
protectorHeath Stewart13-Nov-03 3:20 
GeneralQuestion about threads Pin
zhang_ding12-Nov-03 15:53
zhang_ding12-Nov-03 15:53 
GeneralRe: Question about threads Pin
mhmoud rawas13-Nov-03 0:44
mhmoud rawas13-Nov-03 0:44 
GeneralRe: Question about threads Pin
zhang_ding13-Nov-03 16:24
zhang_ding13-Nov-03 16:24 
GeneralNet Send Emulator Pin
obelisk2912-Nov-03 8:28
obelisk2912-Nov-03 8:28 
GeneralRe: Net Send Emulator Pin
Anonymous12-Nov-03 8:42
Anonymous12-Nov-03 8:42 
GeneralRe: Net Send Emulator Pin
obelisk2912-Nov-03 8:46
obelisk2912-Nov-03 8:46 
GeneralRe: Net Send Emulator Pin
Heath Stewart12-Nov-03 9:03
protectorHeath Stewart12-Nov-03 9:03 
GeneralRe: Net Send Emulator Pin
obelisk2912-Nov-03 9:58
obelisk2912-Nov-03 9:58 
GeneralRe: Net Send Emulator Pin
Daniel M. Edwards12-Nov-03 13:33
Daniel M. Edwards12-Nov-03 13:33 
GeneralRe: Net Send Emulator Pin
Heath Stewart12-Nov-03 8:59
protectorHeath Stewart12-Nov-03 8:59 
GeneralRe: Net Send Emulator Pin
obelisk2912-Nov-03 9:02
obelisk2912-Nov-03 9:02 
GeneralRe: Net Send Emulator Pin
obelisk2912-Nov-03 10:01
obelisk2912-Nov-03 10:01 
GeneralRe: Net Send Emulator Pin
Heath Stewart12-Nov-03 10:30
protectorHeath Stewart12-Nov-03 10:30 

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.