Click here to Skip to main content
15,887,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: OpenFileDialog type in C# Pin
Member Salamon18-Mar-03 12:21
Member Salamon18-Mar-03 12:21 
QuestionHow to Paste Metafile(GIF) from EXCEL Pin
tzn14-Mar-03 0:04
tzn14-Mar-03 0:04 
GeneralSome program designing problems Pin
Don Miguel13-Mar-03 23:46
Don Miguel13-Mar-03 23:46 
GeneralRe: Some program designing problems Pin
John Fisher14-Mar-03 7:27
John Fisher14-Mar-03 7:27 
GeneralRe: Some program designing problems Pin
Don Miguel14-Mar-03 23:56
Don Miguel14-Mar-03 23:56 
GeneralRe: Some program designing problems Pin
John Fisher15-Mar-03 14:48
John Fisher15-Mar-03 14:48 
GeneralRe: Some program designing problems Pin
Don Miguel2-May-06 1:16
Don Miguel2-May-06 1:16 
Questionwhy can not place a transparent panel on mediaplayer? Pin
henrykao13-Mar-03 20:27
henrykao13-Mar-03 20:27 
GeneralPrinting and DataBind issue Pin
Jack Hui13-Mar-03 20:00
Jack Hui13-Mar-03 20:00 
QuestionBasic Auth in ASP.NET? Pin
Adrian Hall13-Mar-03 19:13
Adrian Hall13-Mar-03 19:13 
Generalabout 'new form' Pin
cg112013-Mar-03 17:50
cg112013-Mar-03 17:50 
GeneralRe: about 'new form' Pin
Danny Blanchard14-Mar-03 8:33
Danny Blanchard14-Mar-03 8:33 
GeneralCompiling Entire ASP.NET C# Web Application from CommandLine csc.exe Pin
Vasudevan Deepak Kumar13-Mar-03 17:40
Vasudevan Deepak Kumar13-Mar-03 17:40 
GeneralUpdating a database Pin
Baatezu_Not_Home13-Mar-03 14:46
sussBaatezu_Not_Home13-Mar-03 14:46 
GeneralRe: Updating a database Pin
Mazdak14-Mar-03 5:34
Mazdak14-Mar-03 5:34 
QuestionJavascript communication with System.Form? Pin
Bog13-Mar-03 10:45
Bog13-Mar-03 10:45 
AnswerRe: Javascript communication with System.Form? Pin
King Rufus13-Mar-03 11:14
King Rufus13-Mar-03 11:14 
GeneralRe: Javascript communication with System.Form? Pin
Bog13-Mar-03 12:00
Bog13-Mar-03 12:00 
Generalalso Pin
Bog13-Mar-03 12:19
Bog13-Mar-03 12:19 
I think I'm figuring out the gap between your instructions and what I'm doing wrong:

My definition of ICustomDoc is like this:

public interface ICustomDoc
{
[PreserveSig]
void SetUIHandler(IDocHostUIHandler pUIHandler);
}

Is that bad?

So when I call SetUIHandler I have to cast my Form ("this") into an IDocHostUIHandler. It works fine, and I can trap events through the IDocHostUIHandler. In your instructions you said to just pass it "this". So you see what I'm saying, because I have to do the cast, my ICustomDoc has no knowledge of IMyInterface.

How should I change my definition of SetUIHandler so that I can just give it my form? Seems to me from reading the docs on SetUIHandler, that it only accepts an IDocHostUIHandler, so I don't think I can interop my way out of this bag. I tried to make it just accept "object" and then pass it my Form ("this") but that didn't work.





"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx

GeneralRe: also Pin
King Rufus14-Mar-03 16:08
King Rufus14-Mar-03 16:08 
GeneralRe: also Pin
Bog17-Mar-03 17:41
Bog17-Mar-03 17:41 
GeneralRe: also Pin
King Rufus17-Mar-03 19:22
King Rufus17-Mar-03 19:22 
GeneralRe: also Pin
LongRange.Shooter28-Mar-03 4:32
LongRange.Shooter28-Mar-03 4:32 
AnswerRe: Javascript communication with System.Form? Pin
LongRange.Shooter9-Apr-03 10:04
LongRange.Shooter9-Apr-03 10:04 
GeneralXP Style buttons Pin
Sovman13-Mar-03 10:39
Sovman13-Mar-03 10:39 

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.