Print Page | Close Window

pROBLEM: DATEPICKER & CalendarControl Attach!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7760
Printed Date: 23 November 2024 at 12:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: pROBLEM: DATEPICKER & CalendarControl Attach!
Posted By: vbuser
Subject: pROBLEM: DATEPICKER & CalendarControl Attach!
Date Posted: 08 August 2007 at 2:51pm
I am creating a Outlook UI with the DATEPICKER on frmDatePicker on Pane 1 (shortcut control) and the CalendarControl on frmScheduler on Pane2.
Like this example:
 
 
 
How do I ATTACH these 2 controls?
In my tests I am having a problem attaching these objects, once I was able to do it, but now the calendar DID not reflect changed events when selecting new dates....
 
What is the CORRECT way to do this? Do you have the sample code to crate the app in the above picture?
 
Please help...Help.... Thanks



Replies:
Posted By: moe188
Date Posted: 08 August 2007 at 5:17pm
hello,
try this if you are using the 2 controls in the same form: DatePicker1.AttachToCalendar Me.CalendarControl1
but if you using 2 different forms, you can try:
Form1.DatePicker1.AttachToCalendar Form2.CalendarControl1 (assuming that you are using DatePicker1 in Form1, and CalendarControl in Form2)
 
 


Posted By: vbuser
Date Posted: 09 August 2007 at 3:10am
NO,that does not work. Remember that this UI is using different PANES to hold instances of the forms. There is another way.


Posted By: moe188
Date Posted: 10 August 2007 at 2:04pm

okay,

I used the sample of Outlook2003, and I added a CalendarControl to the from called "frmReportControl". Add the code: Set frmPaneCalendar.frminbox=frmReportControl (in frmMain - load event). then add DatePicker to frmPaneCalendar, then add the code:

DatePicker1.AttachToCalendar frmInbox.CalendarControl, that should work.

of course you have to resize the calendarcontrol in the frmRerportControl (resize event).

If you still have a problem, I will upload a zip file for you.



Posted By: vbuser
Date Posted: 11 August 2007 at 10:38am
I will appreciate it if you upload the working sample, I am having problems with the form references samewhere.... Thanks


Posted By: moe188
Date Posted: 11 August 2007 at 4:10pm
okay,
I hope that will help you to get what you are trying to do.
https://forum.codejock.com/uploads/20070811_161008_Outlook.zip - uploads/20070811_161008_Outlook.zip



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