activex in activex event handling

S

S.Kartikeyan

Hello group,
I have the follwing problem with microsoft web browser activex
control.
I have a fileopendialog control. I open different files in the
IEActivex control
based on the filename in the fileopendialog control.
When i open ppt or doc or pdf files it is nice that it opens them in
its window.

THE PROBLEM NOW IS when ieactivex control is opening these different
files it is opening them with the help of their correspoding activex
control.

But i want the scrollbar events of any activex control that ie hosts
without knowing in priori, of the file that might be opened.
also how to catch scrollbar events when ieactivex control opens long
html files.

How can i get them and handle them in my C# application.

kartik
 
N

Nicholas Paldino [.NET/C# MVP]

kartik,

I don't believe that you are going to be able to do this. The hosting
interface for active documents isn't too concerned with this. The browser
is really just an ActiveX Document hosting container, and then it says to
the document something along the lines of "you do what you have to do, I'll
just give you the space to do it in). The only way I can imagine being able
to do this is to get every kind of document hosted and then find hooks into
the specific document for when the content scrolls.

Hope this helps.
 
S

S.Kartikeyan

Atleast when i open html files how to catch scrollbar events .
ieactivexcontrol does not expose them.
How to subclass MicrosoftWebBrowswer active control.
I tried inheriting control with overriding PreProcessMessage.
Compilation was successfull but runtime unknown errors comes.

S.kartikeyan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top