Print Page | Close Window

No Events fired in VBControlExtender with calendar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24530
Printed Date: 12 December 2024 at 8:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: No Events fired in VBControlExtender with calendar
Posted By: CodeJockUser138273
Subject: No Events fired in VBControlExtender with calendar
Date 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!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net