Click here to Skip to main content
15,885,278 members
Home / Discussions / COM
   

COM

 
GeneralRe: InvokeHelper Pin
Vi221-Aug-09 2:32
Vi221-Aug-09 2:32 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 2:46
MsmVc21-Aug-09 2:46 
GeneralRe: InvokeHelper Pin
Vi221-Aug-09 2:51
Vi221-Aug-09 2:51 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 3:00
MsmVc21-Aug-09 3:00 
GeneralRe: InvokeHelper Pin
MsmVc23-Aug-09 19:48
MsmVc23-Aug-09 19:48 
GeneralRe: InvokeHelper Pin
gaurav_quexst24-Aug-09 1:08
gaurav_quexst24-Aug-09 1:08 
QuestionHow to display images of my custom filetype in IE Pin
srivas20-Aug-09 19:59
srivas20-Aug-09 19:59 
QuestionHow to unregister the event in BHO? Pin
Jacobb Michael20-Aug-09 1:22
Jacobb Michael20-Aug-09 1:22 
i was posting these kind of issues in C# forum.i think this is the correct place to post!

i am using SHDocVw.InternetExplorer with shellwindow (BHO)

in the DocumentComplete event i have registered HTMLDocumentEvents2_Event (click)

my problem:

the click event is called recursively.
i need a solution, once the event is fired, then i want to unregister the event only for the particular button,image,lint etc that i have clicked.

The code i have used inside the oncomplete event as bellow:

HTMLDocumentEvents2_Event DocEvents = (HTMLDocumentEvents2_Event)browser.Document;
DocEvents.onclick += new HTMLDocumentEvents2_onclickEventHandler(DocEvents_onclick);
 bool DocEvents_onclick(IHTMLEventObj pEvtObj)
        {
            if (pEvtObj.srcElement.title != null)
            {
                MessageBox.Show(pEvtObj.srcElement.title.ToString());
            }
            return true;
        }

Questionhow to create online quiz in html Pin
robert(m.tech)20-Aug-09 0:18
robert(m.tech)20-Aug-09 0:18 
AnswerRe: how to create online quiz in html Pin
Stephen Hewitt20-Aug-09 2:06
Stephen Hewitt20-Aug-09 2:06 
QuestionC# BHO problem Pin
svt gdwl19-Aug-09 18:55
svt gdwl19-Aug-09 18:55 
AnswerRe: C# BHO problem Pin
Jacobb Michael19-Aug-09 23:56
Jacobb Michael19-Aug-09 23:56 
QuestionDesign + technical issue Pin
Ahmed Charfeddine19-Aug-09 0:31
Ahmed Charfeddine19-Aug-09 0:31 
AnswerRe: Design + technical issue Pin
Ahmed Charfeddine19-Aug-09 0:45
Ahmed Charfeddine19-Aug-09 0:45 
GeneralRe: Design + technical issue Pin
Baltoro19-Aug-09 14:39
Baltoro19-Aug-09 14:39 
GeneralRe: Design + technical issue Pin
Ahmed Charfeddine21-Aug-09 7:40
Ahmed Charfeddine21-Aug-09 7:40 
GeneralRe: Design + technical issue Pin
Baltoro21-Aug-09 12:12
Baltoro21-Aug-09 12:12 
GeneralRe: Design + technical issue Pin
Ahmed Charfeddine21-Aug-09 12:14
Ahmed Charfeddine21-Aug-09 12:14 
QuestionIPictureDisp to byte array Pin
vibindia18-Aug-09 19:12
vibindia18-Aug-09 19:12 
AnswerRe: IPictureDisp to byte array Pin
Stephen Hewitt20-Aug-09 3:52
Stephen Hewitt20-Aug-09 3:52 
AnswerRe: IPictureDisp to byte array Pin
Vi220-Aug-09 21:00
Vi220-Aug-09 21:00 
GeneralRe: IPictureDisp to byte array Pin
Stephen Hewitt23-Aug-09 4:37
Stephen Hewitt23-Aug-09 4:37 
QuestionForwarding Error Description through CComCoClass::Error crashs my app Pin
Don Rolando18-Aug-09 11:02
Don Rolando18-Aug-09 11:02 
AnswerRe: Forwarding Error Description through CComCoClass::Error crashs my app Pin
Don Rolando19-Aug-09 6:47
Don Rolando19-Aug-09 6:47 
QuestionHow can I add c# user control to c++ ATL? Pin
oleg fadi18-Aug-09 11:01
oleg fadi18-Aug-09 11:01 

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.