PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms UserControl class hosted in IE

Reply

UserControl class hosted in IE

 
Thread Tools Rate Thread
Old 08-02-2006, 10:41 AM   #1
=?Utf-8?B?QXNo?=
Guest
 
Posts: n/a
Default UserControl class hosted in IE


Hello all,
I have a windows control which is hosted in IE
(http://support.microsoft.com/?kbid=317346). Using javascript I am able to
call most of methods of my control, but when it comes to handling events
raised by my UserControl class, this fails. I am not able to handle events in
javascript/ vbscript. Any one has any experience on this?
Thanks
Ash

  Reply With Quote
Old 08-02-2006, 11:08 AM   #2
Dmytro Lapshyn [MVP]
Guest
 
Posts: n/a
Default Re: UserControl class hosted in IE

Hello Ash,

My take on this is that your control should be created as COM-visible, and
its events should be declared and exposed appropriately.

See "Managed and Unmanaged Events" in ".NET Framework Developer's Guide" in
MSDN Library for more information.

"Ash" <Ash@discussions.microsoft.com> wrote in message
news:56AC366A-DED3-40FF-B58C-22E6128C4D75@microsoft.com...
> Hello all,
> I have a windows control which is hosted in IE
> (http://support.microsoft.com/?kbid=317346). Using javascript I am able to
> call most of methods of my control, but when it comes to handling events
> raised by my UserControl class, this fails. I am not able to handle events
> in
> javascript/ vbscript. Any one has any experience on this?
> Thanks
> Ash
>



  Reply With Quote
Old 09-02-2006, 04:25 AM   #3
=?Utf-8?B?QXNo?=
Guest
 
Posts: n/a
Default Re: UserControl class hosted in IE

Well I managed to find solution based on this blog
http://blogs.msdn.com/andrewdownum/...wserEvents.aspx

Thanks for you help


"Dmytro Lapshyn [MVP]" wrote:

> Hello Ash,
>
> My take on this is that your control should be created as COM-visible, and
> its events should be declared and exposed appropriately.
>
> See "Managed and Unmanaged Events" in ".NET Framework Developer's Guide" in
> MSDN Library for more information.
>
> "Ash" <Ash@discussions.microsoft.com> wrote in message
> news:56AC366A-DED3-40FF-B58C-22E6128C4D75@microsoft.com...
> > Hello all,
> > I have a windows control which is hosted in IE
> > (http://support.microsoft.com/?kbid=317346). Using javascript I am able to
> > call most of methods of my control, but when it comes to handling events
> > raised by my UserControl class, this fails. I am not able to handle events
> > in
> > javascript/ vbscript. Any one has any experience on this?
> > Thanks
> > Ash
> >

>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off