469,909 Members | 1,732 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

activex in activex event handling

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
Nov 15 '05 #1
2 4851
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"S.Kartikeyan" <in*******@yahoo.com> wrote in message
news:6d**************************@posting.google.c om...
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

Nov 15 '05 #2
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

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:<OJ**************@TK2MSFTNGP09.phx.gbl>...
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by coder_1024 | last post: by
1 post views Thread by Felipe Garcia | last post: by
23 posts views Thread by Galen Somerville | last post: by
1 post views Thread by Jialiang Ge [MSFT] | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.