Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - No Events fired in VBControlExtender with calendar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No Events fired in VBControlExtender with calendar

 Post Reply Post Reply
Author
Message
CodeJockUser138273 View Drop Down
Newbie
Newbie


Joined: 28 November 2024
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote CodeJockUser138273 Quote  Post ReplyReply Direct Link To This Post Topic: No Events fired in VBControlExtender with calendar
    Posted: 28 November 2024 at 6:10am
Hello,
I've just licensed the Suite Pro and I want to add the calendar control in the runtime dynamicly to a form with VBControlExtender.

As described in the help, I added the License in the Form_Initialize.

Here ist the complete code:

Option Explicit

Private WithEvents ctlCalendar As VBControlExtender

Private Sub ctlCalendar_ObjectEvent(Info As EventInfo)
'--------------------------------------------------------------------------------
' Project    :       Projekt1
' Procedure  :       ctlCalendar_ObjectEvent
' Created by :       Project Administrator
' Machine    :       K3V3DEVWIN7
' Date-Time  :       11.28.2024-11:52:45
' ##SUMMARY
' ##RETURNS
' ##PARAM
' ##REMARKS
'--------------------------------------------------------------------------------

End Sub

Private Sub Form_Initialize()

  CalendarGlobalSettings.License = "Calendar Control Copyright (c) 1998-2024 Codejock Software" & vbCrLf & _
                                   "PRODUCT-ID: Codejock.Calendar.ActiveX.v24.0" & vbCrLf & "VALIDATE-CODE: <snipped out>"

End Sub

Private Sub Form_Load()

    Set ctlCalendar = Controls.Add("Codejock.CalendarControl.24.0.0", "ctlK3VGrid", Me)
    ctlCalendar.Visible = True

End Sub

Private Sub Form_Resize()

  If Not ctlCalendar Is Nothing Then
    ctlCalendar.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
  End If

End Sub

The calendar is schown on the form an is resized correctly, but there are no fired Events!!
I found 2 other posts to this topic several years ago with not answer or solution!

I need a solution for this problem!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.