Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping events from ActiveX on winform
Message
 
To
All
General information
Forum:
ASP.NET
Category:
ActiveX controls
Title:
Trapping events from ActiveX on winform
Miscellaneous
Thread ID:
00767312
Message ID:
00767312
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform