Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping events from ActiveX on winform
Message
Information générale
Forum:
ASP.NET
Catégorie:
Controls activeX
Divers
Thread ID:
00767312
Message ID:
00767370
Vues:
12
Kirk,

I would recommend contacting dbi-tech and ask them about the compatibility of their controls in .NET. Many developers, myself included, have found that working with ActiveX controls are unstable in managed code and have choosen to only work with managed controls.

>I have an activex control (ctSchedule.ocx from dbi-tech). I currently use this activex in vfp for displaying and interacting with schedule and it works great. I have it populating now in vb.net. But I can't figure out how to capture/trap the activex events.
>
>For example, it has an event called scheduleOver that fires when the user moves a mouse over the schedule.
>
>In my code for the form, somehow the system created this:
>
>
>    Private Sub AxctSchedule1_CtrlError(ByVal sender As System.Object, ByVal e As AxCTSCHEDULELib._DctScheduleEvents_CtrlErrorEvent) Handles AxctSchedule1.CtrlError
>
>    End Sub
>
>
>This looks like an event to me. I so created:
>
>   Private Sub axctSchedule1_ScheduleOver(ByVal sender As System.Object, ByVal e As AxCTSCHEDULELib._DctScheduleEvents_ScheduleOver) Handles AxctSchedule1.ScheduleOver
>
>    End Sub
>
>
>But this has the sqiggly line under: ByVal e As AxCTSCHEDULELib._DctScheduleEvents_ScheduleOver portion, and intellisense say: AxCTSCHEDULELib._DctScheduleEvents_ScheduleOver is not defined. It doesn't help me while I type in that portion either.
>
>
>
>any help or links appreciated.
>
>Thanks
>Kirk
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform